From: Junio C Hamano Date: Fri, 08 Apr 2016 18:30:15 GMT Subject: Re: [PATCH] format-patch: allow --no-patch to disable patch output Message-ID: In-Reply-To: Jacob Keller 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.