summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-13 21:12:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-13 21:12:36 (GMT)
commitcafef3d7ad3ed58d9c976bdeb604cff6b4c1f82b (patch)
treef16d708c5ce5391423a4747535bac46bbfb1c860 /Documentation
parent7c137bb5316fbd82e816c2dabebc1d347261c93e (diff)
parent915c96df3822f968332f6bf3642e5195b52201c9 (diff)
downloadgit-cafef3d7ad3ed58d9c976bdeb604cff6b4c1f82b.zip
git-cafef3d7ad3ed58d9c976bdeb604cff6b4c1f82b.tar.gz
git-cafef3d7ad3ed58d9c976bdeb604cff6b4c1f82b.tar.bz2
Merge branch 'lt/pretty-expand-tabs'
When "git log" shows the log message indented by 4-spaces, the remainder of a line after a HT does not align in the way the author originally intended. The command now expands tabs by default in such a case, and allows the users to override it with a new option, '--no-expand-tabs'. * lt/pretty-expand-tabs: pretty: test --expand-tabs pretty: allow tweaking tabwidth in --expand-tabs pretty: enable --expand-tabs by default for selected pretty formats pretty: expand tabs in indented logs to make things line up properly
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/pretty-options.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt
index 54b88b6..6c67182 100644
--- a/Documentation/pretty-options.txt
+++ b/Documentation/pretty-options.txt
@@ -42,6 +42,20 @@ people using 80-column terminals.
verbatim; this means that invalid sequences in the original
commit may be copied to the output.
+--expand-tabs=<n>::
+--expand-tabs::
+--no-expand-tabs::
+ Perform a tab expansion (replace each tab with enough spaces
+ to fill to the next display column that is multiple of '<n>')
+ in the log message before showing it in the output.
+ `--expand-tabs` is a short-hand for `--expand-tabs=8`, and
+ `--no-expand-tabs` is a short-hand for `--expand-tabs=0`,
+ which disables tab expansion.
++
+By default, tabs are expanded in pretty formats that indent the log
+message by 4 spaces (i.e. 'medium', which is the default, 'full',
+and 'fuller').
+
ifndef::git-rev-list[]
--notes[=<treeish>]::
Show the notes (see linkgit:git-notes[1]) that annotate the