Skip to content

Commit 254a3eb

Browse files
committed
Merge branch 'jc/doc-log-rev-list-options' into maint
"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 7070c03 + 3cab02d commit 254a3eb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Documentation/rev-list-options.txt

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

175-
--indexed-objects::
176-
Pretend as if all trees and blobs used by the index are listed
177-
on the command line. Note that you probably want to use
178-
`--objects`, too.
179-
180175
--ignore-missing::
181176
Upon seeing an invalid object name in the input, pretend as if
182177
the bad input was not given.
@@ -644,6 +639,7 @@ Object Traversal
644639

645640
These options are mostly targeted for packing of Git repositories.
646641

642+
ifdef::git-rev-list[]
647643
--objects::
648644
Print the object IDs of any object referenced by the listed
649645
commits. `--objects foo ^bar` thus means ``send me
@@ -662,9 +658,15 @@ These options are mostly targeted for packing of Git repositories.
662658
commits at the cost of increased time. This is used instead of
663659
`--objects-edge` to build ``thin'' packs for shallow repositories.
664660

661+
--indexed-objects::
662+
Pretend as if all trees and blobs used by the index are listed
663+
on the command line. Note that you probably want to use
664+
`--objects`, too.
665+
665666
--unpacked::
666667
Only useful with `--objects`; print the object IDs that are not
667668
in packs.
669+
endif::git-rev-list[]
668670

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

0 commit comments

Comments
 (0)