From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help Subject: Re: vc for git users. Date: Tue, 29 Oct 2019 19:00:17 +0100 Message-ID: <86imo7tosu.fsf@dod.no> References: <20191028142107.koe7faofoqmsljel@Ergus> <834kzssv58.fsf@gnu.org> <2E3DDD9F-5E02-4C7A-AAFE-83A4B0345830@aol.com> <83k18npsr1.fsf@gnu.org> <87sgnbzm7z.fsf@gnus.org> <83imo7prdg.fsf@gnu.org> <42b1ece2-e54a-2b40-ded4-a8cda7450b51@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128915"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 29 18:58:41 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPVlQ-000XKo-Sl for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2019 18:58:41 +0100 Original-Received: from localhost ([::1]:60572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPVlP-0005br-8U for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2019 13:58:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37874) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPVl2-0005XT-0q for help-gnu-emacs@gnu.org; Tue, 29 Oct 2019 13:58:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPVl0-0002BE-J5 for help-gnu-emacs@gnu.org; Tue, 29 Oct 2019 13:58:15 -0400 Original-Received: from cadalora.default.sbang.uk0.bigv.io ([2001:41c9:1:424::90]:46596 helo=cadalora.bang.priv.no) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iPVl0-0002Ag-Di for help-gnu-emacs@gnu.org; Tue, 29 Oct 2019 13:58:14 -0400 Original-Received: from mccoy (cm-84.211.250.118.getinternet.no [84.211.250.118]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id 206D2CD3EF for ; Tue, 29 Oct 2019 17:58:12 +0000 (GMT) In-Reply-To: <42b1ece2-e54a-2b40-ded4-a8cda7450b51@yandex.ru> (Dmitry Gutov's message of "Tue, 29 Oct 2019 17:31:47 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:41c9:1:424::90 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121760 Archived-At: >>>>> Dmitry Gutov : > I don't think it's fair. Git provides good tools. Just the other day I > was thinking of how to commit only a part of changes in a file. Git > makes it easy with 'git add -p', using the staging area. (last Friday I, mostly by accident, discovered that magit supports 'git add -p': go to the diff buffer (ie. 'd d' with the cursor on a file with changes) and stage the indivdual hunks https://stackoverflow.com/a/1096508) > Not sure what the closest VCS-neutral approach would be. Selecting > chunks somehow in a vc-diff buffer? That descibes the magit approach. But having no concept of staging would make it hard to implement.