Skip to content
  • Jeff King's avatar
    merge: detect delete/modechange conflict · 72fac66b
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    If one side deletes a file and the other changes its
    content, we notice and report a conflict. However, if
    instead of changing the content, we change only the mode,
    the merge does not notice (and the mode change is silently
    dropped).
    
    The trivial index merge notices the problem and correctly
    leaves the conflict in the index, but both merge-recursive
    and merge-one-file will silently resolve this in favor of
    the deletion.  In many cases that is a sane resolution, but
    we should be punting to the user whenever there is any
    question. So let's detect and treat this as a conflict (in
    both strategies).
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    72fac66b