Is there an easy way to reformat a regular (unified) diff patch into a git-format patch? What I want to do, is take a regular patch someone sends me and apply it with git, adding author information – as if it were a git-format patch.
I don't really want to start manually rewriting the patch, so I was wondering if there is perhaps a git command I haven't found out about yet that does this.
It seems like a problem others must have had before...
Thanks!
git apply < patch; git commit; git format-patch HEAD^
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With