[Top][All Lists]

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

Re: VC mode and git

From: Eli Zaretskii
Subject: Re: VC mode and git
Date: Wed, 25 Mar 2015 20:49:06 +0200

> From: Yuri Khan <address@hidden>
> Date: Thu, 26 Mar 2015 00:37:06 +0600
> Cc: Eli Zaretskii <address@hidden>, Stefan Monnier <address@hidden>, 
>       Emacs developers <address@hidden>
> The use case goes like this. I work on a feature. At the same time, I
> notice some coding style violations, or bad spelling/grammar, or
> possible enhancements unrelated to the feature.
> Without using the index, I’d have to make a conscious effort to avoid
> mixing feature-related work with all those other good and useful
> modifications. Make notes on a piece of paper. Finish the feature
> work, commit, then go over the notes, do a few more commits.

No, you can either:

  . start a new branch, and make all the unrelated changes there, or

  . stash your changes, make the unrelated changes, commit them, then
    pop the stash and continue

> Bottom line: The index allows me to do several unrelated changes in
> the working copy, then separate them in two or more commits.

There are other ways to do that without messing up your brain with the

reply via email to

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