I'd need to create simple patches from git repository that can be applied with plain simple patch command line utility.
Can it be done?
If given --thread , git-format-patch will generate In-Reply-To and References headers to make the second and subsequent patch mails appear as replies to the first mail; this also generates a Message-Id header to reference.
Git patch files are very beneficial : they are used in order to store differences that need to be applied to a file or a group of files on your system. Git patch is historically linked to the Unix “patch” command that was used in early Unix versions to store differences between files or binaries.
Patches, that git diff
yields, are correctly processed by patch
tool.
patch
skips all the additional info git appends to the patch file. To apply the patch you most likely will need -p1
option.
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