Skip to content

Commit 595b8db

Browse files
sitaramcgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 653a31c commit 595b8db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/config.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,9 @@ If the alias expansion is prefixed with an exclamation point,
451451
it will be treated as a shell command. For example, defining
452452
"alias.new = !gitk --all --not ORIG_HEAD", the invocation
453453
"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.
455457

456458
apply.whitespace::
457459
Tells 'git-apply' how to handle whitespaces, in the same way

0 commit comments

Comments
 (0)