Skip to content

Commit

Permalink
config.txt: move pretty.* to a separate file
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
pclouds authored and gitster committed Oct 29, 2018
1 parent 87e1b41 commit cd96754
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 1 addition & 9 deletions Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -381,15 +381,7 @@ include::config/pack.txt[]

include::config/pager.txt[]

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

protocol.allow::
If set, provide a user defined default policy for all protocols which
Expand Down
9 changes: 9 additions & 0 deletions Documentation/config/pretty.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pretty.<name>::
Alias for a --pretty= format string, as specified in
linkgit:git-log[1]. Any aliases defined here can be used just
as the built-in pretty formats could. For example,
running `git config pretty.changelog "format:* %H %s"`
would cause the invocation `git log --pretty=changelog`
to be equivalent to running `git log "--pretty=format:* %H %s"`.
Note that an alias with the same name as a built-in format
will be silently ignored.

0 comments on commit cd96754

Please sign in to comment.