git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] format-patch stuff
@ 2007-05-12 15:36 Daniel Barkalow
  2007-05-12 20:24 ` Junio C Hamano
  2007-05-12 22:54 ` david
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Barkalow @ 2007-05-12 15:36 UTC (permalink / raw)
  To: git

It would be nice if git-format-patch would generate a [PATCH 0/n] message 
at the start of the series if some option were given. This would, of 
course, have to be editted afterwards to include actual information, but 
it would at least be pre-generated in series and with the configured 
headers and such.

Shouldn't the format.headers configuration automatically apply the correct 
line termination? Currently, you need to know to put in \r\n at the end of 
each one, and the example isn't even right (only puts \n).

Once we've got library support for remotes configuration, it would be nice 
to be able to have "mailto:" remotes with emailed patch configuration 
stuff per-destination.

	-Daniel
*This .sig left intentionally blank*

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] format-patch stuff
  2007-05-12 15:36 [RFC] format-patch stuff Daniel Barkalow
@ 2007-05-12 20:24 ` Junio C Hamano
  2007-05-12 21:40   ` Frank Lichtenheld
  2007-05-12 22:54 ` david
  1 sibling, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-05-12 20:24 UTC (permalink / raw)
  To: Daniel Barkalow; +Cc: git

Daniel Barkalow <barkalow@iabervon.org> writes:

> It would be nice if git-format-patch would generate a [PATCH 0/n] message 
> at the start of the series if some option were given. This would, of 
> course, have to be editted afterwards to include actual information, but 
> it would at least be pre-generated in series and with the configured 
> headers and such.

It would be helpful for git-send-email users.  I've done that by
hand by copying 0001-*.txt to 0000-*.txt and editing as needed
by hand.

> Shouldn't the format.headers configuration automatically apply the correct 
> line termination? Currently, you need to know to put in \r\n at the end of 
> each one, and the example isn't even right (only puts \n).

Sorry, I do not follow.  Where does that "\r\n" come from?  If
you are talking about RFC 2822 line ending conventions, I think
that is a job for MUA (including git-send-email).  Remember,
MUA's are not the only consumer of format-patch output.

Although "2.3. Body" says "CR and LF MUST only occur together as
CRLF", the body of the text we output from format-patch is a
straight text with LF termination and let the MUA handle that
SMTP specific conversion.  I do not think there is reason to
treat the header part any differently.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] format-patch stuff
  2007-05-12 20:24 ` Junio C Hamano
@ 2007-05-12 21:40   ` Frank Lichtenheld
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Lichtenheld @ 2007-05-12 21:40 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Daniel Barkalow, git

On Sat, May 12, 2007 at 01:24:25PM -0700, Junio C Hamano wrote:
> Daniel Barkalow <barkalow@iabervon.org> writes:
> 
> > It would be nice if git-format-patch would generate a [PATCH 0/n] message 
> > at the start of the series if some option were given. This would, of 
> > course, have to be editted afterwards to include actual information, but 
> > it would at least be pre-generated in series and with the configured 
> > headers and such.
> 
> It would be helpful for git-send-email users.  I've done that by
> hand by copying 0001-*.txt to 0000-*.txt and editing as needed
> by hand.

But git-send-email users can already use --compose which serves
exactly this use case, doesn't it?

I would have thought such an option would be useful exactly for
git-send-email non-users ;)

Gruesse,
-- 
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] format-patch stuff
  2007-05-12 15:36 [RFC] format-patch stuff Daniel Barkalow
  2007-05-12 20:24 ` Junio C Hamano
@ 2007-05-12 22:54 ` david
  2007-05-12 23:03   ` Junio C Hamano
  1 sibling, 1 reply; 5+ messages in thread
From: david @ 2007-05-12 22:54 UTC (permalink / raw)
  To: Daniel Barkalow; +Cc: git

On Sat, 12 May 2007, Daniel Barkalow wrote:

> It would be nice if git-format-patch would generate a [PATCH 0/n] message
> at the start of the series if some option were given. This would, of
> course, have to be editted afterwards to include actual information, but
> it would at least be pre-generated in series and with the configured
> headers and such.

instead of the 0/n message be empty, have it start off listing the subject 
lines of the patches to follow (makeing it easier to add any comments 
about them)

David Lang

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] format-patch stuff
  2007-05-12 22:54 ` david
@ 2007-05-12 23:03   ` Junio C Hamano
  0 siblings, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2007-05-12 23:03 UTC (permalink / raw)
  To: david; +Cc: Daniel Barkalow, git

david@lang.hm writes:

> On Sat, 12 May 2007, Daniel Barkalow wrote:
>
>> It would be nice if git-format-patch would generate a [PATCH 0/n] message
>> at the start of the series if some option were given. This would, of
>> course, have to be editted afterwards to include actual information, but
>> it would at least be pre-generated in series and with the configured
>> headers and such.
>
> instead of the 0/n message be empty, have it start off listing the
> subject lines of the patches to follow (makeing it easier to add any
> comments about them)

Sounds sane.  "git-format-patch -n --cover origin..master"?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-12 23:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-12 15:36 [RFC] format-patch stuff Daniel Barkalow
2007-05-12 20:24 ` Junio C Hamano
2007-05-12 21:40   ` Frank Lichtenheld
2007-05-12 22:54 ` david
2007-05-12 23:03   ` Junio C Hamano

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).