]> git.ipfire.org Git - thirdparty/git.git/commit
Documentation/git-status: remove impossible porcelain status DR and DC
authorJohannes Altmanninger <aclopte@gmail.com>
Mon, 4 Oct 2021 19:00:47 +0000 (21:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Oct 2021 20:07:18 +0000 (13:07 -0700)
commit1566cdd4aea973592ef1871197bc3d6b74b42d7e
tree8ef4ded44580e32ed4abba36ab3014e0af2fdf57
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf
Documentation/git-status: remove impossible porcelain status DR and DC

Commit 176ea74793 ("wt-status.c: handle worktree renames", 2017-12-27)
made a porcelain status like .R or .C possible. They occur only when
the source file is added to the index and the destination file is
added with --intent-to-add.

They also documented DR, but that status is impossible.  The index
change D means that the source file does not exist in the index.
The worktree change R/C states that the file has been renamed/copied
since the index, but that's impossible if it did not exist there.

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