From: Felipe Contreras <felipe.contreras@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/2] format-patch: fix dashdash usage
Date: Fri, 27 Nov 2009 00:14:29 +0200 [thread overview]
Message-ID: <94a0d4530911261414o533aa108l202d4c6926da361e@mail.gmail.com> (raw)
In-Reply-To: <7vd4355aaw.fsf@alter.siamese.dyndns.org>
On Thu, Nov 26, 2009 at 9:57 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>> Otherwise 'git format-patch <committish> -- <non-existent-path>' doesn't
>> work.
>
> Instead of "doesn't work", I really wished you wrote something like:
>
> $ git format-patch <commit> -- <path>
>
> complains that <path> does not exist in the current work tree and the
> user needs to explicitly specify "--", even though the user _did_ give
> a "--". This is because it incorrectly removes "--" from the command
> line arguments that is later passed to setup_revisions().
Complaining is one thing... failing to do anything is another.
> Remember that you are trying to help somebody who has to write Release
> Notes out of "git log" output.
>
> I actually have a bigger question, though. Does it even make sense to
> allow pathspecs to format-patch? We sure are currently loose and take
> them, but I doubt it is by design.
Not everyone has clean branches only with pertinent patches.
I stumbled upon this trying to re-create (cleanly) a "branch" that was
constantly merged into another "master" branch that had a lot more
stuff. Maybe there was a smarter way to do that with 'git rebase', but
that doesn't mean format-patch -- <path> shouldn't work.
> The patch itself looks good and is a candidate 'maint' material, if the
> answer to the above question is a convincing "yes, because ...".
Yeah, I also think this should go into 'maint'.
--
Felipe Contreras
next prev parent reply other threads:[~2009-11-26 22:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-26 19:11 [PATCH 0/2] format-patch: fix dashdash Felipe Contreras
2009-11-26 19:11 ` [PATCH 1/2] format-patch: fix dashdash usage Felipe Contreras
2009-11-26 19:57 ` Junio C Hamano
2009-11-26 22:14 ` Felipe Contreras [this message]
2009-11-26 23:11 ` Junio C Hamano
2009-11-26 23:23 ` Felipe Contreras
2009-11-27 0:03 ` Junio C Hamano
2009-11-28 11:18 ` Felipe Contreras
2009-11-26 23:29 ` Junio C Hamano
2009-11-26 23:37 ` Björn Steinbrink
2009-11-26 19:12 ` [PATCH 2/2] format-patch: add test for dashdash Felipe Contreras
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=94a0d4530911261414o533aa108l202d4c6926da361e@mail.gmail.com \
--to=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).