Skip to content

Commit

Permalink
git-status: do not mark unmerged paths as committable.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Nov 7, 2005
1 parent fcbc308 commit f179044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f179044

Please sign in to comment.