aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/diff-options.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-11-11 13:18:38 -0800
committerJunio C Hamano <gitster@pobox.com>2020-11-11 13:18:38 -0800
commitee13bebbd50f69ac593f3e87a0958045f38edf6d (patch)
treed6d503ce21241381463165ab0fa314562063647b /Documentation/diff-options.txt
parent15486b65d033fa3342ca8334ca8fa4c7ecba9a78 (diff)
parentcda34e0d0cc3e0b53e6c496c56e07e34c339263f (diff)
downloadgit-ee13bebbd50f69ac593f3e87a0958045f38edf6d.tar.gz
Merge branch 'jc/abbrev-doc'
The documentation on the "--abbrev=<n>" option did not say the output may be longer than "<n>" hexdigits, which has been clarified. * jc/abbrev-doc: doc: clarify that --abbrev=<n> is about the minimum length
Diffstat (limited to 'Documentation/diff-options.txt')
-rw-r--r--Documentation/diff-options.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index c7f1f2f0ac..2e7a93894c 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -449,7 +449,8 @@ endif::git-format-patch[]
--abbrev[=<n>]::
Instead of showing the full 40-byte hexadecimal object
name in diff-raw format output and diff-tree header
- lines, show only a partial prefix.
+ lines, show the shortest prefix that is at least '<n>'
+ hexdigits long that uniquely refers the object.
In diff-patch output format, `--full-index` takes higher
precedence, i.e. if `--full-index` is specified, full blob
names will be shown regardless of `--abbrev`.