]> git.ipfire.org Git - thirdparty/git.git/commit - advice.h
pull: check if in unresolved merge state
authorPaul Tan <pyokagan@gmail.com>
Thu, 18 Jun 2015 10:54:04 +0000 (18:54 +0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jun 2015 20:17:16 +0000 (13:17 -0700)
commit4a4cf9e821f604b79817bc37b475828f3fb8b0a4
tree99cb30bd03852e51ee2a2077c8a26815cfdc40ab
parenta9de98975479ef7d42986db63c16251c1f87ebcb
pull: check if in unresolved merge state

Since d38a30d (Be more user-friendly when refusing to do something
because of conflict., 2010-01-12), git-pull will error out with
user-friendly advices if the user is in the middle of a merge or has
unmerged files.

Re-implement this behavior. While the "has unmerged files" case can be
handled by die_resolve_conflict(), we introduce a new function
die_conclude_merge() for printing a different error message for when
there are no unmerged files but the merge has not been finished.

Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
advice.c
advice.h
builtin/pull.c