Documentation: update description of shell aliases
Aliases that invoke shell commands start from the top-level directory, but this was not documented. Signed-off-by: Sitaram Chamarty <sitaramc@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Sitaram Chamarty committed
Jul 1, 2009 at 21:30 UTC
595b8dbfeefc2f1b0b47c4d2b947a1068bb37aeb
1 file changed
+3
-1
Documentation/config.txt
+3
-1
@@ -451,7 +451,9 @@ If the alias expansion is prefixed with an exclamation point,
451
it will be treated as a shell command. For example, defining
452
"alias.new = !gitk --all --not ORIG_HEAD", the invocation
453
"git new" is equivalent to running the shell command
454
-"gitk --all --not ORIG_HEAD".
454
+"gitk --all --not ORIG_HEAD". Note that shell commands will be
455
+executed from the top-level directory of a repository, which may
456
+not necessarily be the current directory.
457
458
apply.whitespace::
459
Tells 'git-apply' how to handle whitespaces, in the same way