summaryrefslogtreecommitdiff
path: root/Documentation/git-status.txt
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2021-10-04 19:00:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-10-04 20:07:18 (GMT)
commitd2a534c515e5a0e0e38f077edf28b0eb4c1f011f (patch)
tree0ec339351eced1c466c6550b79c72ba80ff3a3dc /Documentation/git-status.txt
parent56c4d7f6a9ece432cd657ecfa5d3061b47ea0622 (diff)
downloadgit-d2a534c515e5a0e0e38f077edf28b0eb4c1f011f.zip
git-d2a534c515e5a0e0e38f077edf28b0eb4c1f011f.tar.gz
git-d2a534c515e5a0e0e38f077edf28b0eb4c1f011f.tar.bz2
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 <aclopte@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-status.txt')
-rw-r--r--Documentation/git-status.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-status.txt b/Documentation/git-status.txt
index 255dc6a..8f959af 100644
--- a/Documentation/git-status.txt
+++ b/Documentation/git-status.txt
@@ -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
....