@matheusbsbs / matheus-bagliano / commits / 9a6d515fc3
Fork 0

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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jul 29, 2020 at 16:12 UTC 9a6d515fc38abc36a94228f2b96813e1b07c0059
2 files changed +5 -3
Documentation/diff-options.txt
+5
@@ -73,6 +73,11 @@ ifndef::git-format-patch[]
73 Synonym for `-p --raw`.
74 endif::git-format-patch[]
75
76 +ifdef::git-log[]
77 +-t::
78 + Show the tree objects in the diff output.
79 +endif::git-log[]
80 +
81 --indent-heuristic::
82 Enable the heuristic that shifts diff hunk boundaries to make patches
83 easier to read. This is the default.
Documentation/git-log.txt
-3
@@ -146,9 +146,6 @@ below can be used to show the changes made by each commit.
146 in that case, the output represents the changes the merge
147 brought _into_ the then-current branch.
148
149 --t::
150 - Show the tree objects in the diff output.
151 -
149 :git-log: 1
150 include::diff-options.txt[]
151