author | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 11 Aug 2010 08:36:41 +0000 (03:36 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 16 Aug 2010 02:12:05 +0000 (19:12 -0700) | ||
commit | 2a41dfb03b93c3e5b7d1deca537276aed063a044 | |
tree | 6e48b2743fa78304217d3accb28ca875f6d2ebfe | tree | snapshot |
parent | 130ab8ab9c64b59b367c08a041200b6b75758b91 | commit | diff |
Introduce advise() to print hints
Like error(), warn(), and die(), advise() prints a short message
with a formulaic prefix to stderr.
It is local to revert.c for now because I am not sure this is
the right API (we may want to take an array of advice lines or a
boolean argument for easy suppression of unwanted advice).
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Like error(), warn(), and die(), advise() prints a short message
with a formulaic prefix to stderr.
It is local to revert.c for now because I am not sure this is
the right API (we may want to take an array of advice lines or a
boolean argument for easy suppression of unwanted advice).
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c | diff | blob | history |