Documentation: update description of shell aliases
authorSitaram Chamarty <sitaramc@gmail.com>
Wed, 1 Jul 2009 16:00:31 +0000 (21:30 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Jul 2009 16:45:28 +0000 (09:45 -0700)
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>
Documentation/config.txt
index 5dcad94f841c395beb21961ebdacd341d76b25c9..c06eca43d797385461d3cf2f046cb78c5c34fc54 100644 (file)
@@ -451,7 +451,9 @@ If the alias expansion is prefixed with an exclamation point,
 it will be treated as a shell command.  For example, defining
 "alias.new = !gitk --all --not ORIG_HEAD", the invocation
 "git new" is equivalent to running the shell command
-"gitk --all --not ORIG_HEAD".
+"gitk --all --not ORIG_HEAD".  Note that shell commands will be
+executed from the top-level directory of a repository, which may
+not necessarily be the current directory.
 
 apply.whitespace::
        Tells 'git-apply' how to handle whitespaces, in the same way