From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Progress report on git-blame Date: Sat, 25 Jan 2014 16:45:18 -0500 Message-ID: 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 1390686352 7199 80.91.229.3 (25 Jan 2014 21:45:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jan 2014 21:45:52 +0000 (UTC) Cc: Eli Zaretskii , David Kastrup , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 25 22:45:59 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 1W7B35-0008R5-Ep for ged-emacs-devel@m.gmane.org; Sat, 25 Jan 2014 22:45:55 +0100 Original-Received: from localhost ([::1]:52604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7B35-00035W-4S for ged-emacs-devel@m.gmane.org; Sat, 25 Jan 2014 16:45:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7B2v-000353-Ig for emacs-devel@gnu.org; Sat, 25 Jan 2014 16:45:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7B2o-0001Dl-2Y for emacs-devel@gnu.org; Sat, 25 Jan 2014 16:45:45 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:59972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7B2Y-00013s-H4; Sat, 25 Jan 2014 16:45:22 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXaM/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av4EABK/CFFsoXaM/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="46071477" Original-Received: from 108-161-118-140.dsl.teksavvy.com (HELO pastel.home) ([108.161.118.140]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Jan 2014 16:45:20 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 29B2C60274; Sat, 25 Jan 2014 16:45:18 -0500 (EST) In-Reply-To: <87eh3v7wiq.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Sat, 25 Jan 2014 11:21:17 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:169083 Archived-At: > 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. I use "git blame" to get each step of this history by hand, but it'd be much better to get that history directly, which is probably cheaper than a single "git blame". Stefan