Document git aliases support
This patch ports and modifies appropriately the git aliases documentation from my patch, shall it rest in peace. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Petr Baudis committed
Jun 7, 2006 at 20:43 UTC
4514ad4fb77b3c68f69133c22b9c0d3b88ff058f
2 files changed
+11
Documentation/config.txt
+8
@@ -91,6 +91,14 @@ core.warnAmbiguousRefs::
91
If true, git will warn you if the ref name you passed it is ambiguous
92
and might match multiple refs in the .git/refs/ tree. True by default.
93
94
+alias.*::
95
+ Command aliases for the gitlink:git[1] command wrapper - e.g.
96
+ after defining "alias.last = cat-file commit HEAD", the invocation
97
+ "git last" is equivalent to "git cat-file commit HEAD". To avoid
98
+ confusion, aliases that hide existing git commands are ignored.
99
+ Arguments are split at whitespaces, but single or double
100
+ quote pair can be used to quote them.
101
+
102
apply.whitespace::
103
Tells `git-apply` how to handle whitespaces, in the same way
104
as the '--whitespace' option. See gitlink:git-apply[1].
Documentation/git.txt
+3
@@ -21,6 +21,9 @@ link:everyday.html[Everyday Git] for a useful minimum set of commands, and
21
"man git-commandname" for documentation of each command. CVS users may
22
also want to read link:cvs-migration.html[CVS migration].
23
24
+The COMMAND is either a name of a Git command (see below) or an alias
25
+as defined in the configuration file (see gitlink:git-repo-config[1]).
26
+
27
OPTIONS
28
-------
29
--version::