summaryrefslogtreecommitdiff
path: root/archive-zip.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-01 07:21:50 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-01 22:35:16 (GMT)
commitd1014a1745a8aa90c8de2a5ac7624d8175f96724 (patch)
treef70bf896fec309c221cd9b7b5073f5e87d32eab5 /archive-zip.c
parent9d0524d42f340fc49f9e175d966afb7dce3854bb (diff)
downloadgit-d1014a1745a8aa90c8de2a5ac7624d8175f96724.zip
git-d1014a1745a8aa90c8de2a5ac7624d8175f96724.tar.gz
git-d1014a1745a8aa90c8de2a5ac7624d8175f96724.tar.bz2
fail pull/merge early in the middle of conflicted merge
After a pull that results in a conflicted merge, a new user often tries another "git pull" in desperation. When the index is unmerged, merge backends correctly bail out without touching either index nor the working tree, so this does not make the wound any worse. The user will however see several lines of messsages during this process, such as "filename: needs merge", "you need to resolve your current index first", "Merging...", and "Entry ... would be overwritten by merge. Cannot merge.". They are unnecessarily alarming, and cause useful conflict messages from the first pull scroll off the top of the terminal. This changes pull and merge to run "git-ls-files -u" upfront and stop them much earlier than we currently do. Old timers may know better and would not to try pulling again before cleaning things up; this change adds extra overhead that is unnecessary for them. But this would be worth paying for to save new people from needless confusion. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'archive-zip.c')
0 files changed, 0 insertions, 0 deletions