Skip to content

Commit a23069c

Browse files
committed
Merge branch 'jc/doc-log-rev-list-options'
"git log --help" used to show rev-list options that are irrelevant to the "log" command. * jc/doc-log-rev-list-options: Documentation: what does "git log --indexed-objects" even mean?
2 parents 38459ee + 3cab02d commit a23069c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Documentation/rev-list-options.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,6 @@ explicitly.
176176
Pretend as if all objects mentioned by reflogs are listed on the
177177
command line as `<commit>`.
178178

179-
--indexed-objects::
180-
Pretend as if all trees and blobs used by the index are listed
181-
on the command line. Note that you probably want to use
182-
`--objects`, too.
183-
184179
--ignore-missing::
185180
Upon seeing an invalid object name in the input, pretend as if
186181
the bad input was not given.
@@ -648,6 +643,7 @@ Object Traversal
648643

649644
These options are mostly targeted for packing of Git repositories.
650645

646+
ifdef::git-rev-list[]
651647
--objects::
652648
Print the object IDs of any object referenced by the listed
653649
commits. `--objects foo ^bar` thus means ``send me
@@ -666,9 +662,15 @@ These options are mostly targeted for packing of Git repositories.
666662
commits at the cost of increased time. This is used instead of
667663
`--objects-edge` to build ``thin'' packs for shallow repositories.
668664

665+
--indexed-objects::
666+
Pretend as if all trees and blobs used by the index are listed
667+
on the command line. Note that you probably want to use
668+
`--objects`, too.
669+
669670
--unpacked::
670671
Only useful with `--objects`; print the object IDs that are not
671672
in packs.
673+
endif::git-rev-list[]
672674

673675
--no-walk[=(sorted|unsorted)]::
674676
Only show the given commits, but do not traverse their ancestors.

0 commit comments

Comments
 (0)