From: Junio C Hamano <gitster@pobox.com>
To: Caleb Cushing <xenoterracide@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: how do I resolve this merge manually + mergetool bug
Date: Mon, 23 Feb 2009 22:31:10 -0800 [thread overview]
Message-ID: <7vbpssmjm9.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <81bfc67a0902232204y7a1e9a91x6cbf751319664734@mail.gmail.com> (Caleb Cushing's message of "Tue, 24 Feb 2009 01:04:23 -0500")
Caleb Cushing <xenoterracide@gmail.com> writes:
> # unmerged: profiles/package.mask
>
> on the remote package.mask is a file locally it is a directory.
> ...
> git rm :3:profiles/package.mask
> fatal: pathspec ':3:profiles/package.mask' did not match any files
The answer most likely is this but don't do this just yet:
$ git rm profiles/package.mask
With this, you are saying "For the path profiles/package.mask, the correct
resolution is not to have it". There is no room for the stage number to
get into the picture when you are talking about the final result.
But I am suspecting that this is because you moved it to somewhere
(perhaps to profiles/package.mask/frotz) while the remote side kept it
intact or modified it in place. If that is the case, and if the remote
side made an in-place change, you would want to port the change over to
the path you moved the contents to before you actually remove it, so
before running the above "git rm", I would do something like.
$ git cat-file blob :1:profiles/package.mask >original
$ git cat-file blob :3:profiles/package.mask >theirs
$ git cat-file blob profiles/package.mask/frotz >mine
$ git merge-file mine original theirs
$ diff -u profiles/package.mask/frotz mine ;# eyeball the merge result
$ cat mine >profiles/package.mask/frotz
and then finally conclude the merge with:
$ git rm profiles/package.mask
$ git add profiles/package.mask/frotz
But if the remote side did not change anything (i.e. original == theirs),
then you do not have to do the file-level merge to update the contents you
moved to a different path.
next prev parent reply other threads:[~2009-02-24 6:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 6:04 how do I resolve this merge manually + mergetool bug Caleb Cushing
2009-02-24 6:31 ` Junio C Hamano [this message]
2009-02-24 6:52 ` Caleb Cushing
2009-02-24 7:16 ` Junio C Hamano
2009-02-24 7:19 ` Caleb Cushing
2009-02-24 7:47 ` Charles Bailey
2009-02-24 8:32 ` Caleb Cushing
2009-02-24 9:13 ` Charles Bailey
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=7vbpssmjm9.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=xenoterracide@gmail.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.