From: Alberto Luaces <aluaces@udc.es>
To: help-gnu-emacs@gnu.org
Subject: Re: Committing only specific hunks in VC
Date: Wed, 12 Jan 2011 09:53:34 +0100 [thread overview]
Message-ID: <874o9eo641.fsf@eps142.cdf.udc.es> (raw)
In-Reply-To: AANLkTineOGzrRyX1ppsiu88HzBJ5wffEZxfx=nqcD0D4@mail.gmail.com
suvayu ali writes:
> 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?
I think that currently there's no option for doing it from VC. You can
do it from the command line with "hg record". This requires to have the
"record" extension enabled.
--
Alberto
next prev parent reply other threads:[~2011-01-12 8:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 5:40 Committing only specific hunks in VC Deniz Dogan
2011-01-11 22:57 ` suvayu ali
2011-01-12 8:53 ` Alberto Luaces [this message]
2011-01-12 9:03 ` Deniz Dogan
2011-01-12 9:40 ` Oleksandr Gavenko
[not found] ` <mailman.33.1294825218.12535.help-gnu-emacs@gnu.org>
2011-01-12 21:06 ` Colin S. Miller
2011-02-18 19:08 ` jpkotta
[not found] <mailman.5.1294724484.29161.help-gnu-emacs@gnu.org>
2011-01-11 17:28 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874o9eo641.fsf@eps142.cdf.udc.es \
--to=aluaces@udc.es \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.