From: "David Kågedal" <davidk@lysator.liu.se>
To: git@vger.kernel.org
Subject: Re: [PATCH] Document --ignore-if-in-upstream in git-format-patch
Date: Thu, 18 Jan 2007 15:13:46 +0100 [thread overview]
Message-ID: <87wt3ke82t.fsf@morpheus.local> (raw)
In-Reply-To: Pine.LNX.4.63.0701181437200.22628@wbgn013.biozentrum.uni-wuerzburg.de
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Hi,
>
> On Thu, 18 Jan 2007, David Kågedal wrote:
>
>> Someone who knows how it *actually* works is encouraged to send a
>> better explanation.
>
> Nice try... Unfortunately, I don't have time to do it.
>
>> +--ignore-if-in-upstream::
>> + Do not include the same patch twice. If there are two commits
>> + that would produce identical patches, the second one is
>> + excluded from the output.
>
> This is not what it does, though. (If in doubt, use the source, Luke).
I did. But I haven't learnt to navigate it yet. I get confused by
the global state in the code, which makes it hard to know when I
function call returns interesting information or changes some global
table.
> Given a range upstream..localbranch, --ignore-if-in-upstream looks at all
> diffs associated with commits in localbranch..upstream (i.e. all commits
> upstream has, but not localbranch), and when traversing
> upstream..localbranch to output the commits with diffs, drops those at the
> floor which were already seen in localbranch..upstream.
Ah, now I see. How about this, then:
+--ignore-if-in-upstream::
+ Do not include a patch that matches a commit in
+ <until>..<since>. This will examine all patches reachable
+ from <since> but not from <until> and compare them with the
+ patches being generated, and any patch that matches is
+ ignored.
It's hard to get something readable without writing lots about what
<since>..<until> actually means. Which might actually be a good idea
to do. But I don't have time to do that :-)
--
David Kågedal
next prev parent reply other threads:[~2007-01-18 14:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-18 11:27 [PATCH] Document --ignore-if-in-upstream in git-format-patch David Kågedal
2007-01-18 13:40 ` Johannes Schindelin
2007-01-18 14:13 ` David Kågedal [this message]
2007-01-18 14:18 ` Johannes Schindelin
2007-01-19 16:58 ` 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=87wt3ke82t.fsf@morpheus.local \
--to=davidk@lysator.liu.se \
--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 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).