Skip to contentSkip to conversation

git-status: do not mark unmerged paths as committable.

PATCH Junio C Hamano 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

An unmerged path appears as both "Updated but not checked in" list, and "Changed but not updated" list. We are not going to commit that path until it is resolved, so remove it from the former list.

---

 git-status.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applies-to: 49ac95e5ebfd28b32ec1a23a0982900426f0c06c f1790448628262e46496861bb6da76be63a2a247

git-status.sh +1 -1
index 62a24a9..837f334 100755
@@ -41,7 +41,7 @@ git-update-index -q --unmerged --refresh
 
 if GIT_DIR="$GIT_DIR" git-rev-parse --verify HEAD >/dev/null 2>&1
 then
-	git-diff-index -M --cached --name-status HEAD |
+	git-diff-index -M --cached --name-status --diff-filter=MDTCRA HEAD |
 	sed -e '
 		s/\\/\\\\/g
 		s/ /\\ /g

---
0.99.9.GIT