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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 7, 2016 at 2:30 PM, Eric Sunshine <sunshine@xxxxxxxxxxxxxx> wrote:
> On Thu, Apr 7, 2016 at 12:46 PM, Jacob Keller <jacob.e.keller@xxxxxxxxx> 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@xxxxxxxxx>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]