summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Matthieu Moy <Matthieu.Moy@imag.fr>2013-03-11 09:01:33 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-03 11:34:18 -0700
commitc9f35b8b5013c1aa5977c678b844757a1f61dd5f (patch)
treea2eecc8c54e6e363cc427fc4b1e6c02aaf327812
parentadd: make pathless 'add [-u|-A]' warning a file-global function (diff)
downloadtgif-c9f35b8b5013c1aa5977c678b844757a1f61dd5f.tar.xz
add: add a blank line at the end of pathless 'add [-u|-A]' warning
When the commands give an actual output (e.g. when ran with -v), the output is visually mixed with the warning. An additional blank line makes the actual output more visible. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/add.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/add.c b/builtin/add.c
index a4028eea9e..c13d548585 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -57,7 +57,9 @@ static void warn_pathless_add(void)
" git add %s .\n"
" (or git add %s .)\n"
"\n"
- "With the current Git version, the command is restricted to the current directory."),
+ "With the current Git version, the command is restricted to "
+ "the current directory.\n"
+ ""),
option_with_implicit_dot, short_option_with_implicit_dot,
option_with_implicit_dot, short_option_with_implicit_dot,
option_with_implicit_dot, short_option_with_implicit_dot);