From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Progress report on git-blame Date: Sun, 26 Jan 2014 07:30:04 +0100 Message-ID: <87eh3vb6hf.fsf@fencepost.gnu.org> 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 1390717862 31775 80.91.229.3 (26 Jan 2014 06:31:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jan 2014 06:31:02 +0000 (UTC) Cc: Lars Ingebrigtsen , Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 26 07:31:08 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 1W7JFM-0001T0-7x for ged-emacs-devel@m.gmane.org; Sun, 26 Jan 2014 07:31:08 +0100 Original-Received: from localhost ([::1]:53712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7JFL-0005B1-Qc for ged-emacs-devel@m.gmane.org; Sun, 26 Jan 2014 01:31:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7JFJ-0005Av-Ha for emacs-devel@gnu.org; Sun, 26 Jan 2014 01:31:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7JFI-0003Q2-BO for emacs-devel@gnu.org; Sun, 26 Jan 2014 01:31:05 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7JFI-0003Py-8k for emacs-devel@gnu.org; Sun, 26 Jan 2014 01:31:04 -0500 Original-Received: from localhost ([127.0.0.1]:34479 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7JFG-0000sV-UA; Sun, 26 Jan 2014 01:31:03 -0500 Original-Received: by lola (Postfix, from userid 1000) id 4EAADE0725; Sun, 26 Jan 2014 07:30:04 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Sat, 25 Jan 2014 16:48:06 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:169107 Archived-At: Stefan Monnier writes: >> 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. > > One more thing: "git blame" is of no use when you're trying to see not > "who wrote these lines when" but "who removed (and when) the lines that > aren't there any more". That's what the --reverse option of git blame is for. > A "git log-and-diff" would handle that case just fine, OTOH. git log -S "literal string" filename is also quite helpful (it just outputs the commits where the "literal string" appears or disappears). -- David Kastrup