From: Junio C Hamano <junkio@cox.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Teach fmt-patch to write individual files.
Date: Thu, 04 May 2006 17:09:00 -0700 [thread overview]
Message-ID: <7vhd452uzn.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.63.0605050115440.12795@wbgn013.biozentrum.uni-wuerzburg.de> (Johannes Schindelin's message of "Fri, 5 May 2006 01:16:40 +0200 (CEST)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> When called with "--stdout", it still writes to standard output.
>
> Notable differences to git-format-patch:
>
> - since fmt-patch uses the standardized logging machinery, it is
> no longer "From nobody", but "From <commit_sha1>",
Yes, and the date on that UNIX-From line has been updated ;-).
> - the empty lines before and after the "---" just before the
> diffstat are no longer there,
Personally, I find this the most annoying myself. I am not
complaining to you because as you know you inherited this
behaviour from my code.
> - git-format-patch outputs the commit_sha1 just before the first
> diff, which fmt-patch does not,
Which should be fine.
> - the file names are no longer output to stdout, but to stderr
> (since stdout is freopen()ed all the time), and
Which might be a bigger deal; I suspect people capture that while
dumping patches into individual files, and do their
postprocessing using the list of filenames.
> - "git fmt-patch HEAD^" does not work as expected: it outputs
> *all* commits reachable from HEAD^!
If we really wanted to handle this, you could do something like
what builtin-diff does before letting the revision machinery
start walking the revision tree. Look at pending objects, and
if you find only one UNINTERESTING commit, add_object the
current HEAD there as well. Personally I do not think it is
worth it; rather we would probably want to standardize on rev-list
syntax.
Two major differences you forgot to mention.
One is that it does not do the "git cherry" filtering. It is
not a big deal for me personally, but some people may be
depending on it. I dunno.
Another is -o outdir, which should be trivial to add once you
have implemented output switching with freopen().
Anyhow, thanks for starting this.
next prev parent reply other threads:[~2006-05-05 0:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-04 23:16 [PATCH] Teach fmt-patch to write individual files Johannes Schindelin
2006-05-05 0:09 ` Junio C Hamano [this message]
2006-05-05 0:56 ` Johannes Schindelin
-- strict thread matches above, loose matches on Subject: below --
2006-05-04 23:07 Johannes Schindelin
2006-05-04 23:15 ` Johannes Schindelin
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=7vhd452uzn.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=Johannes.Schindelin@gmx.de \
--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