Skip to content

Commit

Permalink
doc/git-log: move "-t" into diff-options list
Browse files Browse the repository at this point in the history
The "-t" option is infrequently used; it doesn't deserve a spot near the
top of the options list. Let's push it down into the diff-options
include, near the definition of --raw.

We'll protect it with a git-log ifdef, since it doesn't make any sense
for non-tree diff commands. Note that this means it also shows up in
git-show, but that's a good thing; it applies equally well there.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
peff authored and gitster committed Jul 29, 2020
1 parent 6cea104 commit 9a6d515
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Documentation/diff-options.txt
Expand Up @@ -73,6 +73,11 @@ ifndef::git-format-patch[]
Synonym for `-p --raw`.
endif::git-format-patch[]

ifdef::git-log[]
-t::
Show the tree objects in the diff output.
endif::git-log[]

--indent-heuristic::
Enable the heuristic that shifts diff hunk boundaries to make patches
easier to read. This is the default.
Expand Down
3 changes: 0 additions & 3 deletions Documentation/git-log.txt
Expand Up @@ -146,9 +146,6 @@ below can be used to show the changes made by each commit.
in that case, the output represents the changes the merge
brought _into_ the then-current branch.

-t::
Show the tree objects in the diff output.

:git-log: 1
include::diff-options.txt[]

Expand Down

0 comments on commit 9a6d515

Please sign in to comment.