{"thread":{"id":"20913","subject":"diffstat and signoff in git-format-patch","startedAt":"2009-09-12T15:13:13Z","lastAt":"2009-09-12T18:29:30Z","messageCount":4,"participants":["Robert Wohlrab","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"122947","messageId":"200909121713.13296.robert.wohlrab@gmx.de","threadId":"20913","inReplyTo":null,"subject":"diffstat and signoff in git-format-patch","fromName":"Robert Wohlrab","fromEmail":"robert.wohlrab@gmx.de","sentAt":"2009-09-12T15:13:13Z","receivedAt":"2009-09-12T15:13:13Z","isPatch":false,"sender":{"key":"robert.wohlrab@gmx.de","avatar":null},"body":"Hi,\nI am currently trying to use git-format-patch in a script to generate files \nwhich must be in a special format. This means that I have to override also \nchanges by users. This is as far as I can see suffix, signoff and some more. \nMost of the stuff works, but I cannot get away the signoff message as their is \nnothing like --no-signoff and the -p option which should be disable generation \nof diffstat doesn't do anything. How can I disable them anyway?\ngit version 1.6.3.3\n-- \nRobert Wohlrab\n"},{"id":"122948","messageId":"200909121717.57896.robert.wohlrab@gmx.de","threadId":"20913","inReplyTo":"200909121713.13296.robert.wohlrab@gmx.de","subject":"Re: diffstat and signoff in git-format-patch","fromName":"Robert Wohlrab","fromEmail":"robert.wohlrab@gmx.de","sentAt":"2009-09-12T15:17:57Z","receivedAt":"2009-09-12T15:17:57Z","isPatch":false,"sender":{"key":"robert.wohlrab@gmx.de","avatar":null},"body":"> Hi,\n> I am currently trying to use git-format-patch in a script to generate files\n> which must be in a special format. This means that I have to override also\n> changes by users. This is as far as I can see suffix, signoff and some\n>  more. Most of the stuff works, but I cannot get away the signoff message\n>  as their is nothing like --no-signoff and the -p option which should be\n>  disable generation of diffstat doesn't do anything. How can I disable them\n>  anyway?\n> git version 1.6.3.3\nAnd can i disable this \"--\\n1.6.3.3\" at the end of the patch?\n-- \nRobert Wohlrab\n"},{"id":"122970","messageId":"20090912181919.GA20561@coredump.intra.peff.net","threadId":"20913","inReplyTo":"200909121717.57896.robert.wohlrab@gmx.de","subject":"Re: diffstat and signoff in git-format-patch","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-09-12T18:19:19Z","receivedAt":"2009-09-12T18:19:19Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Sat, Sep 12, 2009 at 05:17:57PM +0200, Robert Wohlrab wrote:\n\n> > Hi,\n> > I am currently trying to use git-format-patch in a script to generate files\n> > which must be in a special format. This means that I have to override also\n> > changes by users. This is as far as I can see suffix, signoff and some\n> >  more. Most of the stuff works, but I cannot get away the signoff message\n> >  as their is nothing like --no-signoff and the -p option which should be\n> >  disable generation of diffstat doesn't do anything. How can I disable them\n> >  anyway?\n> > git version 1.6.3.3\n> And can i disable this \"--\\n1.6.3.3\" at the end of the patch?\n\nformat-patch isn't very configurable in its output. Maybe you want to\njust do:\n\n  git log -1 --pretty=email -p\n\ninstead (or if you want to tweak the format even further, try\n--pretty=format)?\n\n-Peff\n"},{"id":"122971","messageId":"200909122029.30220.robert.wohlrab@gmx.de","threadId":"20913","inReplyTo":"20090912181919.GA20561@coredump.intra.peff.net","subject":"Re: diffstat and signoff in git-format-patch","fromName":"Robert Wohlrab","fromEmail":"robert.wohlrab@gmx.de","sentAt":"2009-09-12T18:29:30Z","receivedAt":"2009-09-12T18:29:30Z","isPatch":false,"sender":{"key":"robert.wohlrab@gmx.de","avatar":null},"body":"> On Sat, Sep 12, 2009 at 05:17:57PM +0200, Robert Wohlrab wrote:\n> > > Hi,\n> > > I am currently trying to use git-format-patch in a script to generate\n> > > files which must be in a special format. This means that I have to\n> > > override also changes by users. This is as far as I can see suffix,\n> > > signoff and some more. Most of the stuff works, but I cannot get away\n> > > the signoff message as their is nothing like --no-signoff and the -p\n> > > option which should be disable generation of diffstat doesn't do\n> > > anything. How can I disable them anyway?\n> > > git version 1.6.3.3\n> >\n> > And can i disable this \"--\\n1.6.3.3\" at the end of the patch?\n> \n> format-patch isn't very configurable in its output. Maybe you want to\n> just do:\n> \n>   git log -1 --pretty=email -p\n> \n> instead (or if you want to tweak the format even further, try\n> --pretty=format)?\nThanks. I am currently playing with it and i think that I can create what I \nwant with it.\n-- \nRobert Wohlrab\n"}]}