diffstat and signoff in git-format-patch
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
Signature · 1 line
Robert Wohlrab
Quoted 9 lines
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?
Signature · 1 line
Robert Wohlrab
Quoted 10 lines · Robert Wohlrab
Quoted 9 lines
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.3And 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
Quoted 13 lines · Robert Wohlrab
Quoted 11 lines
Quoted 9 lines
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.3And can i disable this "--\n1.6.3.3" at the end of the patch?
Quoted 7 lines
format-patch isn't very configurable in its output. Maybe you want to just do:
git log -1 --pretty=email -pinstead (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.
Signature · 1 line
Robert Wohlrab