From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: Seeing which commits modified a range of lines? Date: Wed, 5 Nov 2014 20:27:46 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1415219315 12678 80.91.229.3 (5 Nov 2014 20:28:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 20:28:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 05 21:28:27 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Xm7Bo-0007In-K4 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 21:28:24 +0100 Original-Received: from localhost ([::1]:48431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm7Bo-0003t9-83 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 15:28:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm7BW-0003pr-M1 for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:28:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm7BO-0007Kg-GH for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:28:06 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:41904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm7BO-0007KU-Av for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 15:27:58 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xm7BN-00074u-1L for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 21:27:57 +0100 Original-Received: from 84-236-127-91.pool.digikabel.hu ([84.236.127.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Nov 2014 21:27:57 +0100 Original-Received: from adatgyujto by 84-236-127-91.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Nov 2014 21:27:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 84.236.127.91 (Mozilla/5.0 (Windows NT 6.1; rv:33.0) Gecko/20100101 Firefox/33.0) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100772 Archived-At: Stefan Monnier iro.umontreal.ca> writes: > > Oh, yes, I've been dreaming of it ever since I started using GNU Arch. > IIUC the only tool which does provide the needed info is Git where > you have "git log -L,:". > Out of the box, yes, but the point of vc is to make the life of the user easier and hide complexities. So this functionality could be implmented behind the scenes. For example, VC tools provide annotate (blame) which can tell the last change for lines in a file. So this can be called for a file and then the last changes for the interesting lines are known. Then blame can be called for these previous versions of the file (indicated by the changes) to find out the last changes before that, etc. so the implementation can walk backwards the revisions for each line collecting the commit infos and then finally presenting them to the user. So it seems the information is available via annotate (blame), because this is provided by the VC tools, so it may not be hard to implement in a new vc command.