git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Jon Loeliger <jdl@jdl.com>,
	git@vger.kernel.org
Subject: Re: Dubious format-patch options
Date: Fri, 13 Jun 2008 02:33:37 -0400	[thread overview]
Message-ID: <20080613063337.GE26768@sigill.intra.peff.net> (raw)
In-Reply-To: <7vtzfyxckm.fsf@gitster.siamese.dyndns.org>

On Thu, Jun 12, 2008 at 08:01:45PM -0700, Junio C Hamano wrote:

> makes some sense.  Being able to produce an unusable patch by saying
> 
>     $ git format-patch --stat old..
> 
> at the first glance is of quite dubious value, but even that would make
> sense as a good input source for "commit log automailer".
> 
> I think I know where Jon is coming from and where he wants to go.  While I
> am somewhat sympathetic to the cause of adding some warning or safety
> valve to prevent nonsense option combinations from being given, I am not
> sure we can draw a line to classify options into black and white.

I am against a safety valve here. For example, I have the following
alias:

  format-patch --pretty=format:%s%n%n%b

which obviously does not generate a valid email, but which I use for
pulling "how about this?" patches directly into existing emails
(otherwise, I have to delete the header cruft myself). Yes, I _could_ do
this with git-log, but format-patch has slightly different command line
semantics. And it most clearly expresses what I want: the patch
submission format, but with the header bits pretty-printed differently.

My point being that this flexibility _is_ useful, and I am not sure it
is worth removing it in favor of people who get confused about why

  git format-patch --pretty=format:%s%n%n%b origin | git send-email

doesn't work.

-Peff

      reply	other threads:[~2008-06-13  6:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13  1:14 Dubious format-patch options Jon Loeliger
2008-06-13  2:05 ` Junio C Hamano
2008-06-13  2:24 ` Linus Torvalds
2008-06-13  3:01   ` Junio C Hamano
2008-06-13  6:33     ` Jeff King [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=20080613063337.GE26768@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jdl@jdl.com \
    --cc=torvalds@linux-foundation.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).