From: Andreas Ericsson <ae@op5.se>
To: git@vger.kernel.org
Subject: Re: [RFC] git-format-patch options
Date: Mon, 21 Nov 2005 17:44:42 +0100 [thread overview]
Message-ID: <4381F97A.9010105@op5.se> (raw)
In-Reply-To: <20051121162540.4722.qmail@web31812.mail.mud.yahoo.com>
Luben Tuikov wrote:
> It is often the case that "since <mine> head forked from
> <his> head" (quoting the manual page of git-format-patch),
> for various projects, some patches have been accepted and
> some have not.
>
> I was wondering about the value of
>
> git-format-patch <commit-ish>
>
> to output/prepare a diff patch between the indicated commit
> and its parent. As opposed to the current behaviour giving
> all changes between the indicated commit and HEAD.
>
> So in effect the form above would become the trivial:
>
> git-format-patch <commit-ish>..HEAD
>
> and
>
> git-format-patch <commit-ish>
>
> would give the diff patch between the indicated commit and
> its parent.
>
Please don't. git-format-patch is generally used to send in a series of
patches ranging back from HEAD, so this would mean less userfriendliness
in the most usual case.
Here's the "sed -n 90,100p" commentary from git-format-patch:
----%<-----%<----
# Backward compatible argument parsing hack.
#
# Historically, we supported:
# 1. "rev1" is equivalent to "rev1..HEAD"
# 2. "rev1..rev2"
# 3. "rev1" "rev2 is equivalent to "rev1..rev2"
#
# We want to take a sequence of "rev1..rev2" in general.
# Also, "rev1.." should mean "rev1..HEAD"; git-diff users are
# familiar with that syntax.
----%<-----%<----
Perhaps the man-page needs to be updated with this info.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
next prev parent reply other threads:[~2005-11-21 16:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 16:25 [RFC] git-format-patch options Luben Tuikov
2005-11-21 16:44 ` Andreas Ericsson [this message]
2005-11-21 17:36 ` Luben Tuikov
2005-11-21 17:59 ` Andreas Ericsson
2005-11-21 18:27 ` Luben Tuikov
2005-11-21 19:11 ` Ryan Anderson
2005-11-22 1:53 ` Luben Tuikov
2005-11-21 19:27 ` Junio C Hamano
2005-11-22 6:26 ` Luben Tuikov
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=4381F97A.9010105@op5.se \
--to=ae@op5.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).