[Top][All Lists]

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

Re: VC mode and git

From: Yuri Khan
Subject: Re: VC mode and git
Date: Thu, 26 Mar 2015 01:30:49 +0600

On Thu, Mar 26, 2015 at 1:23 AM, Alan Mackenzie <address@hidden> wrote:

>> […] with the index, I can do all of these things as soon as I
>> feel the need. Then I call up the Magit status buffer which shows me
>> all unstaged changes. I go over them and stage only those that I want
>> to put in a single commit, e.g. all the spelling fixes. I make a
>> commit, then repeat with the reduced set of changes. With a single
>> key, I can stage all changes, or all changes to a single file, or an
>> individual hunk, or a selected region.
> Isn't this what branches are meant to be for?

Yes, the final result that I want is a set of unrelated series of
commits. The difference is how I arrive at that result.

Traditionally, one creates a branch, makes those and only those
modifications that are meant for that branch, commits, repeats until

Branch switching in Git is lightweight. But doing all modifications in
a single working copy avoids even that.

Of course, it only scales up to a certain extent. Too many unrelated
modifications become difficult to separate.

reply via email to

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