Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes I need to merge two patches. I can apply them but often it is not convenient (coping, temporary files etc.). Is there a tool to merge patches (assuming they are not conflicting)?

share|improve this question
up vote 4 down vote accepted

If you manage patches often, then you may be interested in quilt. I believe it has a patch combination feature.

See Quilt (software) for more info.

share|improve this answer
And something that does not require sources? – Maciej Piechotka Aug 17 '10 at 22:57

If you're interested in maintaining the source, you could put it into a version control system, add patches to it, and get the patches you want out of it.

share|improve this answer
I do it mainly for backporting patches. I tend to do it with version control system but I wondered if there is easier way. – Maciej Piechotka Aug 18 '10 at 1:47
@MaciejPiechotka, your best bet is to use the tools of your VCS, or tools specifically built for it. Perhaps you should look into a more modern VCS for your work, like mercurial or git. As far as I know, both have capable tools to import and otherwise interact with legacy VCS. – vonbrand Jan 26 at 21:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.