2

I have about 20 patch files in one directory.

I need to merge them into one big patch file. I have already read multiple other questions, but combinediff can only merge 2 diffs into one one.

How can I merge all 20 patches into one?

Venji
  • 63
  • 1
  • 9

1 Answers1

1

You could simply apply all those patches, getting 20 new commits (git am, which can take multiple patches).

Then, as a case of "Practical uses of git reset --soft?", reset (--soft) to your original commit.
The index would be one representing the applied 20 patches.

A simple git diff would then generate a global patch.

A simpler approach would be to use git apply 20 times, which does not generate a commit

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250