diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-07 01:37:40 (GMT) |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-07 01:37:40 (GMT) |
commit | f1790448628262e46496861bb6da76be63a2a247 (patch) | |
tree | 2ea0c04cd3b2ff765774a08c68f856fd73002b14 /git-status.sh | |
parent | fcbc3083e37f3c025d85d7b2c8a1c53d07a81fac (diff) | |
download | git-f1790448628262e46496861bb6da76be63a2a247.zip git-f1790448628262e46496861bb6da76be63a2a247.tar.gz git-f1790448628262e46496861bb6da76be63a2a247.tar.bz2 |
git-status: do not mark unmerged paths as committable.
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.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-status.sh')
-rwxr-xr-x | git-status.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-status.sh b/git-status.sh index 62a24a9..837f334 100755 --- a/git-status.sh +++ b/git-status.sh @@ -41,7 +41,7 @@ git-update-index -q --unmerged --refresh || exit 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 |