# diffstat and signoff in git-format-patch

4 messages from 2009-09-12 to 2009-09-12. Participants: Robert Wohlrab, Jeff King.
Thread: https://gitlist.dev/t/20913

## Robert Wohlrab, 2009-09-12 15:13

Subject: diffstat and signoff in git-format-patch
Message-ID: <200909121713.13296.robert.wohlrab@gmx.de>
URL: https://gitlist.dev/e/200909121713.13296.robert.wohlrab%40gmx.de

```
Hi,
I am currently trying to use git-format-patch in a script to generate files 
which must be in a special format. This means that I have to override also 
changes by users. This is as far as I can see suffix, signoff and some more. 
Most of the stuff works, but I cannot get away the signoff message as their is 
nothing like --no-signoff and the -p option which should be disable generation 
of diffstat doesn't do anything. How can I disable them anyway?
git version 1.6.3.3
-- 
Robert Wohlrab

```

## Robert Wohlrab, 2009-09-12 15:17

Subject: Re: diffstat and signoff in git-format-patch
Message-ID: <200909121717.57896.robert.wohlrab@gmx.de>
URL: https://gitlist.dev/e/200909121717.57896.robert.wohlrab%40gmx.de
In-Reply-To: <200909121713.13296.robert.wohlrab@gmx.de>

```
> Hi,
> I am currently trying to use git-format-patch in a script to generate files
> which must be in a special format. This means that I have to override also
> changes by users. This is as far as I can see suffix, signoff and some
>  more. Most of the stuff works, but I cannot get away the signoff message
>  as their is nothing like --no-signoff and the -p option which should be
>  disable generation of diffstat doesn't do anything. How can I disable them
>  anyway?
> git version 1.6.3.3
And can i disable this "--\n1.6.3.3" at the end of the patch?
-- 
Robert Wohlrab

```

## Jeff King, 2009-09-12 18:19

Subject: Re: diffstat and signoff in git-format-patch
Message-ID: <20090912181919.GA20561@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20090912181919.GA20561%40coredump.intra.peff.net
In-Reply-To: <200909121717.57896.robert.wohlrab@gmx.de>

```
On Sat, Sep 12, 2009 at 05:17:57PM +0200, Robert Wohlrab wrote:

> > Hi,
> > I am currently trying to use git-format-patch in a script to generate files
> > which must be in a special format. This means that I have to override also
> > changes by users. This is as far as I can see suffix, signoff and some
> >  more. Most of the stuff works, but I cannot get away the signoff message
> >  as their is nothing like --no-signoff and the -p option which should be
> >  disable generation of diffstat doesn't do anything. How can I disable them
> >  anyway?
> > git version 1.6.3.3
> And can i disable this "--\n1.6.3.3" at the end of the patch?

format-patch isn't very configurable in its output. Maybe you want to
just do:

  git log -1 --pretty=email -p

instead (or if you want to tweak the format even further, try
--pretty=format)?

-Peff

```

## Robert Wohlrab, 2009-09-12 18:29

Subject: Re: diffstat and signoff in git-format-patch
Message-ID: <200909122029.30220.robert.wohlrab@gmx.de>
URL: https://gitlist.dev/e/200909122029.30220.robert.wohlrab%40gmx.de
In-Reply-To: <20090912181919.GA20561@coredump.intra.peff.net>

```
> On Sat, Sep 12, 2009 at 05:17:57PM +0200, Robert Wohlrab wrote:
> > > Hi,
> > > I am currently trying to use git-format-patch in a script to generate
> > > files which must be in a special format. This means that I have to
> > > override also changes by users. This is as far as I can see suffix,
> > > signoff and some more. Most of the stuff works, but I cannot get away
> > > the signoff message as their is nothing like --no-signoff and the -p
> > > option which should be disable generation of diffstat doesn't do
> > > anything. How can I disable them anyway?
> > > git version 1.6.3.3
> >
> > And can i disable this "--\n1.6.3.3" at the end of the patch?
> 
> format-patch isn't very configurable in its output. Maybe you want to
> just do:
> 
>   git log -1 --pretty=email -p
> 
> instead (or if you want to tweak the format even further, try
> --pretty=format)?
Thanks. I am currently playing with it and i think that I can create what I 
want with it.
-- 
Robert Wohlrab

```
