diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-03-29 16:05:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-03-30 12:52:26 -0700 |
commit | fe37a9c586a65943e1bca327a1bbe1ca4a3d3023 (patch) | |
tree | fdb9dc30ad33ead3e710560a3c04e2cfee49a2e3 /Documentation/pretty-options.txt | |
parent | 0893eec85fca0f76039a96cbbcd3592ff8571c24 (diff) | |
download | git-fe37a9c586a65943e1bca327a1bbe1ca4a3d3023.tar.gz |
pretty: allow tweaking tabwidth in --expand-tabs
When the local convention of the project is to use tab width that is
not 8, it may make sense to allow "git log --expand-tabs=<n>" to
tweak the output to match it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/pretty-options.txt')
-rw-r--r-- | Documentation/pretty-options.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt index edbb02f18c..93ad1cdc40 100644 --- a/Documentation/pretty-options.txt +++ b/Documentation/pretty-options.txt @@ -42,16 +42,19 @@ 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 8) + 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'). `--no-expand-tabs` option can be used to disable -this. +and 'fuller'). ifndef::git-rev-list[] --notes[=<ref>]:: |