git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] format-patch: allow --no-patch to disable patch output

From
Jacob Keller <jacob.keller@gmail.com>
Date
Apr 8, 2016, 18:17 UTC
Message-ID
<CA+P7+xoUi5H19zOCAiiwQZ0-j8yNZS9-2DzgoMmLSVOrC8Nbpw@mail.gmail.com>
In-Reply-To
<CAPig+cRNCwFmGW-Zo+osjceA6nb=6t3+rJ2uEbnyYxGfSWQ-Uw@mail.gmail.com>
On Thu, Apr 7, 2016 at 2:30 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 23 quoted lines
> On Thu, Apr 7, 2016 at 12:46 PM, Jacob Keller <jacob.e.keller@intel.com> wrote:
>> The documentation for format-patch indicates that --no-patch wilL
>> suppress patch output. It also incorrectly mentions that -s will also
>> suppress the patch output, but this is incorrect because -s is used to
>> add the sign-off line first. Fix the documentation to remove the
>> indication about -s. Fix builtin format-patch to prevent always adding
>> the patch incase --no-patch is given. An alternative approach would be
>> to remove --no-patch from the documentation for git-format-patch, and
>> add an error check to indicate that --no-patch is not supported.
>
> See [1] and [2].
>
> [1]: http://thread.gmane.org/gmane.comp.version-control.git/290023
> [2]: b73a1bc (git-format-patch.txt: don't show -s as shorthand for
> multiple options, 2016-03-27)
>
>> Add a test for --no-patch to ensure it functions as expected.
>>
>> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

So if I want to get the summary of a patch out of a commit without the actual diff what would you suggest?

Basically, I have a process where we have post processed code, and I want to be able to generate a "patch" that shows the diff only of the post-processed code, ie:

checkout commit^ to get the parent commit, process the code, then checkout the commit and process that code, and run a diff between, then spit out the equivalent of "git format-patch commit --no-patch" + the diff between the post processed code.

I think maybe git show --pretty=email might work?

Thanks, Jake

Previous: Eric SunshineNext: Junio C Hamano
Message 3 of 5 in “format-patch: allow --no-patch to disable patch output”
  1. format-patch: allow --no-patch to disable patch outputJacob Keller, Apr 7, 2016
  2. Eric SunshineApr 7, 2016
  3. Jacob KellerApr 8, 2016
  4. Junio C HamanoApr 8, 2016
  5. Jacob KellerApr 8, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.