Skip to content

Commit d2a534c

Browse files
krobelusgitster
authored andcommitted
Documentation/git-status: mention how to detect copies
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 56c4d7f commit d2a534c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-status.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ show tracked paths:
211211
* 'A' = added
212212
* 'D' = deleted
213213
* 'R' = renamed
214-
* 'C' = copied
214+
* 'C' = copied (if config option status.renames is set to "copies")
215215
* 'U' = updated but unmerged
216216

217217
....

0 commit comments

Comments
 (0)