From: Robin Rosenberg <robin.rosenberg.lists@dewire.com>
To: Timur Tabi <timur@freescale.com>
Cc: git@vger.kernel.org
Subject: Re: How does format-patch determine the filename of the patch?
Date: Thu, 15 Oct 2009 19:59:47 +0200 [thread overview]
Message-ID: <200910151959.47778.robin.rosenberg.lists@dewire.com> (raw)
In-Reply-To: <ed82fe3e0910150917u72ef189epc74411e71a9cd2d4@mail.gmail.com>
torsdag 15 oktober 2009 18:17:09 skrev Timur Tabi:
> Hi. I'm not familiar with the git source code, so forgive me if this
> is a dumb question. I'm trying to determine the algorithm that
> git-format-patch uses to determine the name of the patch file it
> creates (e.g. "0001-this-is-my-patch-without-spaces-and-trunca.patch")
> I'm looking at the function cmd_format_patch(), and I just don't see
> where it creates any files. Can someone show me where this code is?
>
> The reason I ask is that I'm writing a script which calls
> git-format-patch to create some patches for post-processing. So I
> need the name of the file that git-format-patch creates so that I can
> open it and examine it. I'd liked to see if there's a way to get the
> name of the patch without actually creating the file.
It tells you the names on stdout.
-- robin
next prev parent reply other threads:[~2009-10-15 18:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-15 16:17 How does format-patch determine the filename of the patch? Timur Tabi
2009-10-15 17:48 ` Thomas Rast
2009-10-15 17:59 ` Robin Rosenberg [this message]
2009-10-29 13:05 ` Timur Tabi
2009-10-29 13:14 ` Joshua Roys
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=200910151959.47778.robin.rosenberg.lists@dewire.com \
--to=robin.rosenberg.lists@dewire.com \
--cc=git@vger.kernel.org \
--cc=timur@freescale.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).