]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation/git-status: mention how to detect copies
authorJohannes Altmanninger <aclopte@gmail.com>
Mon, 4 Oct 2021 19:00:50 +0000 (21:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Oct 2021 20:07:18 +0000 (13:07 -0700)
The man page documents that git-status can find copies, but does not
mention how. Whereas git-diff has command line options -C, there is
no such option for git-status - it will only detect copies when the
"status.renames" config option is "copies" or "copy". Document that
in git-status.txt because this has confused me and others[1].

[1]: https://www.reddit.com/r/git/comments/ppc2l9/how_to_get_a_file_with_copied_status/

Signed-off-by: Johannes Altmanninger <aclopte@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-status.txt

index 255dc6af9bebfcf94a19cf2eb282652b36571fb1..8f959afa0f8f7a45bdbdc8a2e5e644d38b756424 100644 (file)
@@ -211,7 +211,7 @@ show tracked paths:
 * 'A' = added
 * 'D' = deleted
 * 'R' = renamed
-* 'C' = copied
+* 'C' = copied (if config option status.renames is set to "copies")
 * 'U' = updated but unmerged
 
 ....