From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: vc for git users. Date: Wed, 30 Oct 2019 10:34:27 +0100 Message-ID: <87lft2inks.fsf@mbork.pl> 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> <86imo7tosu.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="187582"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: help-gnu-emacs@gnu.org To: Steinar Bang Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 10:36:25 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 1iPkOu-000mcy-Nl for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 10:36:24 +0100 Original-Received: from localhost ([::1]:38182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPkOs-00084v-UF for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 05:36:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57317) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPkOV-00082E-H5 for help-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:36:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPkOQ-0004cW-1L for help-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:35:57 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:55422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iPkOP-0004Pi-QE for help-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:35:53 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 72FBFE6B93; Wed, 30 Oct 2019 10:35:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mLpYqAYdWrIo; Wed, 30 Oct 2019 10:34:39 +0100 (CET) Original-Received: from localhost (79.163.232.146.ipv4.supernova.orange.pl [79.163.232.146]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 611DAE6AF0; Wed, 30 Oct 2019 10:34:31 +0100 (CET) In-reply-to: <86imo7tosu.fsf@dod.no> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 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:121773 Archived-At: On 2019-10-29, at 19:00, Steinar Bang wrote: >>>>>> 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) Do you know that you can mark selected lines and stage a region, too? Best, -- Marcin Borkowski http://mbork.pl