summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2007-02-11 00:33:58 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-02-11 06:46:34 (GMT)
commitdfd42a3c6281275b518f10938dcd858558cd82e3 (patch)
treede0831a6b88036f483f0d7ae9df04cdf56f55554 /Documentation
parentf3dd015c9147e3116fc1941d96f4dad38386b1db (diff)
downloadgit-dfd42a3c6281275b518f10938dcd858558cd82e3.zip
git-dfd42a3c6281275b518f10938dcd858558cd82e3.tar.gz
git-dfd42a3c6281275b518f10938dcd858558cd82e3.tar.bz2
Allow aliases to expand to shell commands
If the alias expansion is prefixed with an exclamation point, treat it as a shell command which is run using system(3). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 4e650af..0129b1f 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -222,6 +222,12 @@ alias.*::
spaces, the usual shell quoting and escaping is supported.
quote pair and a backslash can be used to quote them.
+ 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".
+
apply.whitespace::
Tells `git-apply` how to handle whitespaces, in the same way
as the '--whitespace' option. See gitlink:git-apply[1].