Skip to content

Commit cd96754

Browse files
pcloudsgitster
authored andcommitted
config.txt: move pretty.* 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>
1 parent 87e1b41 commit cd96754

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Documentation/config.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,7 @@ include::config/pack.txt[]
381381

382382
include::config/pager.txt[]
383383

384-
pretty.<name>::
385-
Alias for a --pretty= format string, as specified in
386-
linkgit:git-log[1]. Any aliases defined here can be used just
387-
as the built-in pretty formats could. For example,
388-
running `git config pretty.changelog "format:* %H %s"`
389-
would cause the invocation `git log --pretty=changelog`
390-
to be equivalent to running `git log "--pretty=format:* %H %s"`.
391-
Note that an alias with the same name as a built-in format
392-
will be silently ignored.
384+
include::config/pretty.txt[]
393385

394386
protocol.allow::
395387
If set, provide a user defined default policy for all protocols which

Documentation/config/pretty.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
pretty.<name>::
2+
Alias for a --pretty= format string, as specified in
3+
linkgit:git-log[1]. Any aliases defined here can be used just
4+
as the built-in pretty formats could. For example,
5+
running `git config pretty.changelog "format:* %H %s"`
6+
would cause the invocation `git log --pretty=changelog`
7+
to be equivalent to running `git log "--pretty=format:* %H %s"`.
8+
Note that an alias with the same name as a built-in format
9+
will be silently ignored.

0 commit comments

Comments
 (0)