Skip to content

Commit 1566cdd

Browse files
krobelusgitster
authored andcommitted
Documentation/git-status: remove impossible porcelain status DR and DC
Commit 176ea74 ("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 <[email protected]> Signed-off-by: Johannes Altmanninger <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 225bc32 commit 1566cdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-status.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ C [ MD] copied in index
225225
[MARC] index and work tree matches
226226
[ MARC] M work tree changed since index
227227
[ MARC] D deleted in work tree
228-
[ D] R renamed in work tree
229-
[ D] C copied in work tree
228+
R renamed in work tree
229+
C copied in work tree
230230
-------------------------------------------------
231231
D D unmerged, both deleted
232232
A U unmerged, added by us

0 commit comments

Comments
 (0)