builtin-am: implement -q/--quiet
commit5d28cf78196acc454b4430b1efe3b5f9e55ae2e6
authorPaul Tan <pyokagan@gmail.com>
Tue, 4 Aug 2015 13:51:37 +0000 (4 21:51 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Aug 2015 05:02:11 +0000 (4 22:02 -0700)
tree9cfd97971f833afb168232b37f0ff8d4b73204d2
parent8d185503186ea0bc906defb9ecb1e9fb0e06efae
builtin-am: implement -q/--quiet

Since 0e987a1 (am, rebase: teach quiet option, 2009-06-16), git-am
supported the --quiet option, and when told to be quiet, would only
speak on failure. Re-implement this by introducing the say() function,
which works like fprintf_ln(), but would only write to the stream when
state->quiet is false.

Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c