help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Committing only specific hunks in VC


From: suvayu ali
Subject: Re: Committing only specific hunks in VC
Date: Tue, 11 Jan 2011 14:57:32 -0800

On Mon, Jan 10, 2011 at 9:40 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
> I have a bunch of files that have been modified and I'd like to commit
> all of these changes except for one hunk in one of the files.
>
> How would I do this from Emacs? I've heard that it's possible to stage
> only specific hunks in magit, but I'm using Mercurial.

I don't know of a way to do it from Emacs, but with git its trivial to
interactively add the hunks (git add -i file or git add -p file) from
the terminal and then commit from the
terminal or from emacs using vc-dir. Does mercurial has similar
interactive adding facilities?

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]