File tree Expand file tree Collapse file tree 6 files changed +18
-11
lines changed Expand file tree Collapse file tree 6 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,8 @@ endif::git-format-patch[]
449
449
--abbrev[=<n>]::
450
450
Instead of showing the full 40-byte hexadecimal object
451
451
name in diff-raw format output and diff-tree header
452
- lines, show only a partial prefix.
452
+ lines, show the shortest prefix that is at least '<n>'
453
+ hexdigits long that uniquely refers the object.
453
454
In diff-patch output format, `--full-index` takes higher
454
455
precedence, i.e. if `--full-index` is specified, full blob
455
456
names will be shown regardless of `--abbrev`.
Original file line number Diff line number Diff line change @@ -87,7 +87,9 @@ include::blame-options.txt[]
87
87
88
88
--abbrev=<n>::
89
89
Instead of using the default 7+1 hexadecimal digits as the
90
- abbreviated object name, use <n>+1 digits. Note that 1 column
90
+ abbreviated object name, use <m>+1 digits, where <m> is at
91
+ least <n> but ensures the commit object names are unique.
92
+ Note that 1 column
91
93
is used for a caret to mark the boundary commit.
92
94
93
95
Original file line number Diff line number Diff line change 9
9
--------
10
10
[verse]
11
11
'git branch' [--color[=<when>] | --no-color] [--show-current]
12
- [-v [--abbrev=<length > | --no-abbrev]]
12
+ [-v [--abbrev=<n > | --no-abbrev]]
13
13
[--column[=<options>] | --no-column] [--sort=<key>]
14
14
[--merged [<commit>]] [--no-merged [<commit>]]
15
15
[--contains [<commit>]] [--no-contains [<commit>]]
@@ -194,8 +194,10 @@ This option is only applicable in non-verbose mode.
194
194
Be more quiet when creating or deleting a branch, suppressing
195
195
non-error messages.
196
196
197
- --abbrev=<length>::
198
- Alter the sha1's minimum display length in the output listing.
197
+ --abbrev=<n>::
198
+ In the verbose listing that show the commit object name,
199
+ show the shortest prefix that is at least '<n>' hexdigits
200
+ long that uniquely refers the object.
199
201
The default value is 7 and can be overridden by the `core.abbrev`
200
202
config option.
201
203
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ SYNOPSIS
19
19
[--exclude-standard]
20
20
[--error-unmatch] [--with-tree=<tree-ish>]
21
21
[--full-name] [--recurse-submodules]
22
- [--abbrev] [--] [<file>...]
22
+ [--abbrev[=<n>] ] [--] [<file>...]
23
23
24
24
DESCRIPTION
25
25
-----------
@@ -153,7 +153,8 @@ a space) at the start of each line:
153
153
154
154
--abbrev[=<n>]::
155
155
Instead of showing the full 40-byte hexadecimal object
156
- lines, show only a partial prefix.
156
+ lines, show the shortest prefix that is at least '<n>'
157
+ hexdigits long that uniquely refers the object.
157
158
Non default number of digits can be specified with --abbrev=<n>.
158
159
159
160
--debug::
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ OPTIONS
62
62
63
63
--abbrev[=<n>]::
64
64
Instead of showing the full 40-byte hexadecimal object
65
- lines, show only a partial prefix.
65
+ lines, show the shortest prefix that is at least '<n>'
66
+ hexdigits long that uniquely refers the object.
66
67
Non default number of digits can be specified with --abbrev=<n>.
67
68
68
69
--full-name::
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ configuration (see linkgit:git-config[1]).
16
16
17
17
--abbrev-commit::
18
18
Instead of showing the full 40-byte hexadecimal commit object
19
- name, show only a partial prefix. Non default number of
20
- digits can be specified with "--abbrev=<n>" (which also modifies
21
- diff output, if it is displayed) .
19
+ name, show a prefix that names the object uniquely.
20
+ "--abbrev=<n>" (which also modifies diff output, if it is displayed)
21
+ option can be used to specify the minimum length of the prefix .
22
22
+
23
23
This should make "--pretty=oneline" a whole lot more readable for
24
24
people using 80-column terminals.
You can’t perform that action at this time.
0 commit comments