Skip to content

Commit 9a6d515

Browse files
peffgitster
authored andcommitted
doc/git-log: move "-t" into diff-options list
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6cea104 commit 9a6d515

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Documentation/diff-options.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ ifndef::git-format-patch[]
7373
Synonym for `-p --raw`.
7474
endif::git-format-patch[]
7575

76+
ifdef::git-log[]
77+
-t::
78+
Show the tree objects in the diff output.
79+
endif::git-log[]
80+
7681
--indent-heuristic::
7782
Enable the heuristic that shifts diff hunk boundaries to make patches
7883
easier to read. This is the default.

Documentation/git-log.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ below can be used to show the changes made by each commit.
146146
in that case, the output represents the changes the merge
147147
brought _into_ the then-current branch.
148148

149-
-t::
150-
Show the tree objects in the diff output.
151-
152149
:git-log: 1
153150
include::diff-options.txt[]
154151

0 commit comments

Comments
 (0)