@matheusbsbs / matheus-bagliano / commits / 7ffad25014
Fork 0

docs: clarify meaning of -M for git-log

As an option to the "diff" family, it is fairly obvious what "detect renames" means. However, for revision traversal, the "-M" option is just included in the long list of options, with no indication that it is about showing renames in diffs versus following renames. Let's make it more explicit. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed May 8, 2010 at 00:44 UTC 7ffad2501489690edd9335fdd1e69c05699767e3
1 file changed +7
Documentation/diff-options.txt
+7
@@ -177,7 +177,14 @@ endif::git-format-patch[]
177 Break complete rewrite changes into pairs of delete and create.
178
179 -M::
180 +ifndef::git-log[]
181 Detect renames.
182 +endif::git-log[]
183 +ifdef::git-log[]
184 + If generating diffs, detect and report renames for each commit.
185 + For following files across renames while traversing history, see
186 + `--follow`.
187 +endif::git-log[]
188
189 -C::
190 Detect copies as well as renames. See also `--find-copies-harder`.