config.txt: move alias.* to a separate file
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Oct 27, 2018 at 08:22 UTC
f740c8f1434fa05c361850faf0ddc1cad107a9d8
2 files changed
+19
-18
Documentation/config.txt
+1
-18
@@ -293,24 +293,7 @@ include::config/core.txt[]
293
294
include::config/add.txt[]
295
296
-alias.*::
297
- Command aliases for the linkgit:git[1] command wrapper - e.g.
298
- after defining "alias.last = cat-file commit HEAD", the invocation
299
- "git last" is equivalent to "git cat-file commit HEAD". To avoid
300
- confusion and troubles with script usage, aliases that
301
- hide existing Git commands are ignored. Arguments are split by
302
- spaces, the usual shell quoting and escaping is supported.
303
- A quote pair or a backslash can be used to quote them.
304
-+
305
-If the alias expansion is prefixed with an exclamation point,
306
-it will be treated as a shell command. For example, defining
307
-"alias.new = !gitk --all --not ORIG_HEAD", the invocation
308
-"git new" is equivalent to running the shell command
309
-"gitk --all --not ORIG_HEAD". Note that shell commands will be
310
-executed from the top-level directory of a repository, which may
311
-not necessarily be the current directory.
312
-`GIT_PREFIX` is set as returned by running 'git rev-parse --show-prefix'
313
-from the original current directory. See linkgit:git-rev-parse[1].
296
+include::config/alias.txt[]
297
298
am.keepcr::
299
If true, git-am will call git-mailsplit for patches in mbox format
Documentation/config/alias.txt
new
+18
@@ -0,0 +1,18 @@
1
+alias.*::
2
+ Command aliases for the linkgit:git[1] command wrapper - e.g.
3
+ after defining "alias.last = cat-file commit HEAD", the invocation
4
+ "git last" is equivalent to "git cat-file commit HEAD". To avoid
5
+ confusion and troubles with script usage, aliases that
6
+ hide existing Git commands are ignored. Arguments are split by
7
+ spaces, the usual shell quoting and escaping is supported.
8
+ A quote pair or a backslash can be used to quote them.
9
++
10
+If the alias expansion is prefixed with an exclamation point,
11
+it will be treated as a shell command. For example, defining
12
+"alias.new = !gitk --all --not ORIG_HEAD", the invocation
13
+"git new" is equivalent to running the shell command
14
+"gitk --all --not ORIG_HEAD". Note that shell commands will be
15
+executed from the top-level directory of a repository, which may
16
+not necessarily be the current directory.
17
+`GIT_PREFIX` is set as returned by running 'git rev-parse --show-prefix'
18
+from the original current directory. See linkgit:git-rev-parse[1].