From: Shawn Pearce <spearce@spearce.org>
To: Jakub Narebski <jnareb@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [RFC] Merge strategy 'applyreject'
Date: Wed, 13 Sep 2006 17:38:20 -0400 [thread overview]
Message-ID: <20060913213820.GC30782@spearce.org> (raw)
In-Reply-To: <ee9spf$h98$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> wrote:
> > ---
> > .gitignore | 1 +
> > Makefile | 1 +
> > git-merge-applyreject.sh | 26 ++++++++++++++++++++++++++
> > git-merge.sh | 2 +-
> > 4 files changed, 29 insertions(+), 1 deletions(-)
>
> But where documentation (Documentation/merge-strategies.txt)?
If its interesting I'll document it. I just threw it together and
tossed it out there to see what others thought of the general idea.
> > +#!/bin/sh
> > +#
> > +# Simple merge strategy which produces reject files on failed merges.
> > +# Only handles two heads and one merge base, thus the command line
> > +# parameters must be: base -- head1 head2
>
> We can always get the base using git-merge-base, so the arguments could
> be either "base -- head1 head2", or just "head1 head2".
Actually the merge driver (git-merge.sh) feeds us the arguments like
that.
> Does "git pull -s applyreject . head2" works (when on head1) with
> this patch? Does the unified driver git-merge works correctly?
Yes. That's how I tested it.
> > +git-diff --binary -M $base $incoming \
> > + | git-apply --index --reject --verbose
>
> --index or --cached?
I believe that --index is correct. I want to patch the file in
the working directory, not the one that's currently in the index.
I also want to update the index if the patch applied cleanly.
--
Shawn.
prev parent reply other threads:[~2006-09-13 21:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-13 21:08 [RFC] Merge strategy 'applyreject' Shawn Pearce
2006-09-13 21:16 ` Petr Baudis
2006-09-13 21:43 ` Junio C Hamano
2006-09-13 21:50 ` Shawn Pearce
2006-09-13 21:54 ` Jakub Narebski
2006-09-13 22:26 ` Shawn Pearce
2006-09-13 21:50 ` Petr Baudis
2006-09-13 21:46 ` Shawn Pearce
2006-09-13 21:22 ` Jakub Narebski
2006-09-13 21:38 ` Shawn Pearce [this message]
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=20060913213820.GC30782@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=jnareb@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).