From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.devel Subject: Re: VC mode and git Date: Wed, 25 Mar 2015 21:46:19 +0100 Organization: Probably a good idea Message-ID: <86lhikst44.fsf@dod.no> References: <86sicte9j3.fsf@example.com> <83y4mlnee2.fsf@gnu.org> <20150325181959.GC3833@acm.fritz.box> <20150325192349.GE3833@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427316434 16988 80.91.229.3 (25 Mar 2015 20:47:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Mar 2015 20:47:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 25 21:47:08 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YasCR-0002AV-HO for ged-emacs-devel@m.gmane.org; Wed, 25 Mar 2015 21:46:51 +0100 Original-Received: from localhost ([::1]:41325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YasCR-0007Oe-26 for ged-emacs-devel@m.gmane.org; Wed, 25 Mar 2015 16:46:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YasCM-0007Lq-K5 for emacs-devel@gnu.org; Wed, 25 Mar 2015 16:46:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YasCJ-0001Ua-Eo for emacs-devel@gnu.org; Wed, 25 Mar 2015 16:46:46 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YasCJ-0001UP-7h for emacs-devel@gnu.org; Wed, 25 Mar 2015 16:46:43 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YasC2-0001sL-TL for emacs-devel@gnu.org; Wed, 25 Mar 2015 21:46:26 +0100 Original-Received: from cm-84.208.248.210.getinternet.no ([84.208.248.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Mar 2015 21:46:26 +0100 Original-Received: from sb by cm-84.208.248.210.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Mar 2015 21:46:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.248.210.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (windows-nt) Cancel-Lock: sha1:1TmDqmmSOmSCSBKO/hc+EVij9V4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184265 Archived-At: >>>>> Alan Mackenzie : >> However, 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? Actually that sounds like what I do to get multiple commits on the same branch. I like to commit what logically belongs together and makes sensible diffs with a sensible context, when following it later, typically from a git blame. Magit and the index, makes what Yuri describes, easy to do.