From: Junio C Hamano <gitster@pobox.com>
To: Phillip Susi <psusi@ubuntu.com>
Cc: git@vger.kernel.org
Subject: Re: cherry-pick generates bogus conflicts on removed files
Date: Thu, 17 Oct 2013 14:14:48 -0700 [thread overview]
Message-ID: <xmqqiowvy4zb.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <52604166.8000501@ubuntu.com> (Phillip Susi's message of "Thu, 17 Oct 2013 15:58:30 -0400")
Phillip Susi <psusi@ubuntu.com> writes:
> I have a commit I am trying to cherry pick that removes a number of
> files. It seems to generate conflicts for those files that have been
> modified on this branch since the common ancestor.
Correct.
Without inspecting them, you would not know what you would be losing
by blindly resolving to removal, hence we do not auto-resolve "one
side removed, the other side changed" to a removal.
That does not need to mean that we should not make it easier for the
user to say "resolve these 'one side removed, the other side
changed' paths to removal".
"add -u" will be a way to say "Record the changes I made to my
working tree files to the index". So presumably
rm -f those files that the other branch removed
git add -u
would be one way to do so. Of course, you can also use "git rm"
directly, i.e.
git rm -f those files that the other branch removed
next prev parent reply other threads:[~2013-10-17 21:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-17 19:58 cherry-pick generates bogus conflicts on removed files Phillip Susi
2013-10-17 21:14 ` Junio C Hamano [this message]
2013-10-18 13:25 ` Phillip Susi
2013-10-22 17:01 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqiowvy4zb.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=psusi@ubuntu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.