From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Aneesh Kumar K.V" Newsgroups: gmane.emacs.devel Subject: Re: Progress report on git-blame Date: Sun, 26 Jan 2014 20:10:57 +0530 Message-ID: <87ppneergm.fsf@linux.vnet.ibm.com> References: <20140109140226.57D6C38085A@snark.thyrsus.com> <20140110155121.GA8178@thyrsus.com> <20140111205925.GC17111@thyrsus.com> <87y52mdoha.fsf@fencepost.gnu.org> <87fvoceuos.fsf_-_@fencepost.gnu.org> <83d2jgcy5z.fsf@gnu.org> <87vbx8cu8a.fsf@fencepost.gnu.org> <87eh3v7wiq.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390794127 11929 80.91.229.3 (27 Jan 2014 03:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2014 03:42:07 +0000 (UTC) Cc: Eli Zaretskii , David Kastrup , emacs-devel@gnu.org To: Stefan Monnier , Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 27 04:42:14 2014 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 1W7d5Q-0003uI-Hr for ged-emacs-devel@m.gmane.org; Mon, 27 Jan 2014 04:42:12 +0100 Original-Received: from localhost ([::1]:57267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7d5P-0005Ro-T7 for ged-emacs-devel@m.gmane.org; Sun, 26 Jan 2014 22:42:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7d5G-0005Rj-Dw for emacs-devel@gnu.org; Sun, 26 Jan 2014 22:42:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7d59-0001UO-RZ for emacs-devel@gnu.org; Sun, 26 Jan 2014 22:42:02 -0500 Original-Received: from e28smtp04.in.ibm.com ([122.248.162.4]:39557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7d59-0001TN-74 for emacs-devel@gnu.org; Sun, 26 Jan 2014 22:41:55 -0500 Original-Received: from /spool/local by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 27 Jan 2014 09:11:50 +0530 Original-Received: from d28dlp01.in.ibm.com (9.184.220.126) by e28smtp04.in.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 27 Jan 2014 09:11:48 +0530 Original-Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id A84ABE004A; Mon, 27 Jan 2014 09:14:51 +0530 (IST) Original-Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s0R3fiJa6947312; Mon, 27 Jan 2014 09:11:44 +0530 Original-Received: from d28av05.in.ibm.com (localhost [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s0R3bJfT017982; Mon, 27 Jan 2014 09:11:46 +0530 Original-Received: from skywalker.linux.vnet.ibm.com ([9.79.196.162]) by d28av05.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s0QEevOo010157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 26 Jan 2014 20:10:58 +0530 In-Reply-To: User-Agent: Notmuch/0.17+7~gc734dd75344e (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14012703-5564-0000-0000-00000BB87B20 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 122.248.162.4 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:169160 Archived-At: Stefan Monnier writes: >> That sounds quite useful. My common bug fixing use case is that I find >> a function (or a bit of a function) that I think has a bug, and then I >> `C-x v g' to find out who "who wrote this crap anyway!!!" (it usually >> turns out to be myself), and then I try to see whether any of the lines >> are suspiciously new and may have introduced a new bug. > >> So I'm usually just interested in a screenful of lines. If we could >> have a version of `C-x v g' that only does "blame" for the current >> region, for instance, that would certainly fit my use case. > > Indeed, as mentioned in the past a few times in various contexts, > I generally don't really want "git blame" (or its equivalent in other > VCS), instead I want "git log-and-diff FILE:NN-MM" which gives me the > history (hunks and accompanying log comments) of the lines between NN > and MM of FILE. newer version of git log do support that http://git-scm.com/docs/git-log -L ,: -L :: Trace the evolution of the line range given by "," (or the funcname regex ) within the . You may not give any pathspec limiters. This is currently limited to a walk starting from a single revision, i.e., you may only give zero or one positive revision arguments. You can specify this option more than once. -aneesh