File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -267,8 +267,8 @@ start-point is either a local or remote-tracking branch.
267
267
Only list branches of the given object.
268
268
269
269
--format <format>::
270
- A string that interpolates `%(fieldname)` from the object
271
- pointed at by a ref being shown . The format is the same as
270
+ A string that interpolates `%(fieldname)` from a branch ref being shown
271
+ and the object it points at . The format is the same as
272
272
that of linkgit:git-for-each-ref[1].
273
273
274
274
Examples
Original file line number Diff line number Diff line change @@ -38,11 +38,12 @@ OPTIONS
38
38
key.
39
39
40
40
<format>::
41
- A string that interpolates `%(fieldname)` from the
42
- object pointed at by a ref being shown . If `fieldname`
41
+ A string that interpolates `%(fieldname)` from a ref being shown
42
+ and the object it points at . If `fieldname`
43
43
is prefixed with an asterisk (`*`) and the ref points
44
- at a tag object, the value for the field in the object
45
- tag refers is used. When unspecified, defaults to
44
+ at a tag object, use the value for the field in the object
45
+ which the tag object refers to (instead of the field in the tag object).
46
+ When unspecified, `<format>` defaults to
46
47
`%(objectname) SPC %(objecttype) TAB %(refname)`.
47
48
It also interpolates `%%` to `%`, and `%xx` where `xx`
48
49
are hex digits interpolates to character with hex code
Original file line number Diff line number Diff line change @@ -188,8 +188,8 @@ This option is only applicable when listing tags without annotation lines.
188
188
Defaults to HEAD.
189
189
190
190
<format>::
191
- A string that interpolates `%(fieldname)` from the object
192
- pointed at by a ref being shown . The format is the same as
191
+ A string that interpolates `%(fieldname)` from a tag ref being shown
192
+ and the object it points at . The format is the same as
193
193
that of linkgit:git-for-each-ref[1]. When unspecified,
194
194
defaults to `%(refname:strip=2)`.
195
195
You can’t perform that action at this time.
0 commit comments