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
Junio C Hamano <gitster@pobox.com>
Date
Apr 8, 2016, 18:30 UTC
Message-ID
<xmqqh9fcvtqg.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CA+P7+xoUi5H19zOCAiiwQZ0-j8yNZS9-2DzgoMmLSVOrC8Nbpw@mail.gmail.com>
Jacob Keller <jacob.keller@gmail.com> writes:
> So if I want to get the summary of a patch out of a commit without the
> actual diff what would you suggest?
"git log --stat"?
If you have a set of (discrete) commits, "git show --stat A B C"?
> 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:

If you want to script and depend on the exact output, you cannot depend on "log" or "show", so you would likely be doing "cat-file commit" for log message part and "diff-tree" (with options like -p and --stat) for the patch part, I guess.

Previous: Jacob KellerNext: Jacob Keller
Message 4 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.