From: "Catalin Marinas" <catalin.marinas@gmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCH (resend)] Pass -C1 to git-apply in StGIT's apply_diff() and apply_patch().
Date: Tue, 10 Apr 2007 23:38:55 +0100 [thread overview]
Message-ID: <b0943d9e0704101538p3de0bf56m7906cfe2f5fc157e@mail.gmail.com> (raw)
In-Reply-To: <20070410193214.GF4946@moonlight.home>
On 10/04/07, Tomash Brechko <tomash.brechko@gmail.com> wrote:
> Once we are talking about StGIT's push (push of
> the patch back to the stack), why would we want to start tree-way
> merge when the context has changed? My point was exactly that since I
> want to keep my patches up-to-date with the main branch, I do rebase
> from time to time, and I'm not interested in doing the merge every
> time just because something has changed upstream in surrounding code.
When something has changed in the surrounding code (not touched by
your patch), the automatic three-way merge should, in general, be able
to solve the issue as it uses the ancestor information. Is the
automatic three-way merge failing as well in your case?
> The same goes for patches that were already applied upstream.
> Whatever the current context around the code of my applied patch is, I
> have to accept it, because the patch was applied. I'm going to throw
> it away locally, but currently I have to do the merge first.
I think -C1 should be OK for merge detection (in most situations) and
importing patch files (via import, fold) but I personally don't like
it when rebasing a patch. I still prefer a more precise context
checking, rather than the fuzzy one similar to the "patch" tool (as
the line numbers are usually volatile).
I'm OK with the idea of this patch but I would prefer a config option
and/or command line option rather than hard-coding it for people with
different views. A command line option could make sense for commands
like import/fold and a config option for the rest.
Thanks.
--
Catalin
next prev parent reply other threads:[~2007-04-10 22:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-09 11:24 [PATCH (resend)] Pass -C1 to git-apply in StGIT's apply_diff() and apply_patch() Tomash Brechko
2007-04-10 16:48 ` Catalin Marinas
2007-04-10 19:21 ` Tomash Brechko
2007-04-10 19:32 ` Tomash Brechko
2007-04-10 22:38 ` Catalin Marinas [this message]
2007-04-11 7:51 ` Tomash Brechko
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=b0943d9e0704101538p3de0bf56m7906cfe2f5fc157e@mail.gmail.com \
--to=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
/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.