[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to apply (multi file) patches conveniently
From: |
Eli Zaretskii |
Subject: |
Re: How to apply (multi file) patches conveniently |
Date: |
Mon, 06 Feb 2017 17:49:09 +0200 |
> From: Michael Heerdegen <michael_heerdegen@web.de>
> Date: Mon, 06 Feb 2017 13:13:14 +0100
>
> I wonder how a convenient way to apply multi-file patches like they are
> posted in emacs-devel or emacs-bug looks like.
I just mark the entire patch in Emacs, then invoke "M-|", and type
patch -d /the/root/directory/of/the/project -pN
where N should be chosen by counting the slashes that you will want
Patch to remove before looking for files relative to that root
directory. For patches produced by "git diff" etc., N is typically 1.
Re: How to apply (multi file) patches conveniently, Michael Heerdegen, 2017/02/07