From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.devel Subject: Re: vc-region-history: HG? Date: Tue, 16 Jan 2018 21:09:34 +0000 Message-ID: References: <873735lvz9.fsf@mat.ucm.es> <83k1whybb3.fsf@gnu.org> <87r2qphe2m.fsf@mat.ucm.es> <87wp0htzmz.fsf@telefonica.net> <87shb5tt0f.fsf@telefonica.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1516136949 1164 195.159.176.226 (16 Jan 2018 21:09:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2018 21:09:09 +0000 (UTC) Cc: Emacs Development To: =?UTF-8?Q?=C3=93scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 16 22:09:05 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebYTa-0007vM-OB for ged-emacs-devel@m.gmane.org; Tue, 16 Jan 2018 22:08:58 +0100 Original-Received: from localhost ([::1]:36651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebYVa-0006MK-3R for ged-emacs-devel@m.gmane.org; Tue, 16 Jan 2018 16:11:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebYUh-0006Bw-Ao for emacs-devel@gnu.org; Tue, 16 Jan 2018 16:10:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebYUg-00061C-DD for emacs-devel@gnu.org; Tue, 16 Jan 2018 16:10:07 -0500 Original-Received: from mail-ot0-x232.google.com ([2607:f8b0:4003:c0f::232]:40645) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebYUg-00060U-70 for emacs-devel@gnu.org; Tue, 16 Jan 2018 16:10:06 -0500 Original-Received: by mail-ot0-x232.google.com with SMTP id d10so14895707oti.7 for ; Tue, 16 Jan 2018 13:10:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=StIoO2LIs+wfD8x6ZPrj8BCoctLPFtRKDfUSoy5cvjw=; b=LchIgxMaXAlDuoSHP8GWZSL9HL5Gm8DIBn+qoiODQnveZtHPJ72ISvKrzLTQ6p7l8R xER5WGdxFMZ3AL5dX45JGXVzhbOJPj0N9o03vOx6iqZBAteqcfOO1kyUREWUkcKThIUe WpQ4qGfCDatgr0Rza5yLzKzYeMM+yMZOBkAV6bBSumH8FpAcJgR9wWwtRgeB6/8dt8cU wiBwdAOhy5jvclRY2C+TjkAXGp+yZTme9qvr0q1eEV/eZ6i9oHkiyE17lQaY3ITIwTOw 3/8uBR0lZ7WvGRVv3xuCvMWokfGK3rMf6RsKlOfQFyyyxbPs/iZnGoo94SgGeA8iu0Z9 s2ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=StIoO2LIs+wfD8x6ZPrj8BCoctLPFtRKDfUSoy5cvjw=; b=DVhmhIr6CuxWHo+z9GK0/c0lBKmLlTXai4A0aPNKCLyDxRRe+AE3wSf/EU8NSO/vlQ MrCUYulGm9AcI6P2SzmlV686e3GP3y32RNvgZfeZBdJXaq/z4HEZTBD+0jz6XTHtm+xl SqqYfkN5amO2kxsC2bm8zv8bRwdi1rvipYYSpMk70bEyx9ok/t+Ps9hivh7Ccn4Q4gpG Y61igb8f94HXzrLsaA6zUI/ejKDoKk1SsgM3rhTWmBnbZ/1xo3naFtcbH3owGxIvFnUN ykw9M1EvuODKbqWeKhZfK9dhNf+7Oz7iM1LxF0KPfCG+mjp2mye0RKLGqXZy2kpYqvuo Weuw== X-Gm-Message-State: AKwxytcQRq/T555oMH0Xe9c+MjjSOAybdzhIxabEpc8/9feERVUUjUxO fZyxghjApXW4Zk+W44CivQmF/obOq5mjCNeyYFA= X-Google-Smtp-Source: ACJfBotFl3h+Hma38hOcWDW9KwFwIVoerUtcWrL5dZ5bhOfhscsccL1MXGhsCtSI8CxtUTR330nVbVDsj2hNw1UCuH8= X-Received: by 10.157.114.80 with SMTP id a16mr16605489otk.88.1516137005335; Tue, 16 Jan 2018 13:10:05 -0800 (PST) Original-Received: by 10.157.5.184 with HTTP; Tue, 16 Jan 2018 13:09:34 -0800 (PST) In-Reply-To: <87shb5tt0f.fsf@telefonica.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:222029 Archived-At: On 16 January 2018 at 21:04, =C3=93scar Fuentes wrote: > Richard Copley writes: > >> On 16 January 2018 at 18:41, =C3=93scar Fuentes wrote: >>> Uwe Brauer writes: >>> >>>> But, what is the underlying git command? I tried to debug the function >>>> and couldn't figure it out. >> >> Uwe, >> >> To see the backend command, set 'vc-command-messages' to t >> before issuing a VC command in Emacs. >> >> For vc-command history the messages logged are: >> >> Running git --no-pager diff-index --exit-code -p HEAD -- Makefile.in >> in foreground... >> Running git --no-pager diff-index --exit-code -p HEAD -- Makefile.in...= OK =3D 0 >> Running git --no-pager log -p -L... . in background... done >> >> In this case I'm not sure that tells the whole story and I expect Emacs = does >> some of the work. I didn't put much effort into understanding the output= but >> perhaps it will give you a useful hint. >> >>> From vc-git-region-history: >>> >>> (vc-git-command buffer 'async nil "log" "-p" ;"--follow" ;FIXME: not su= pported? >>> (format "-L%d,%d:%s" lfrom lto (file-relative-name file= ))) >>> >>> >>> lfrom and lto are line numbers. > > In case it is not clear, the command is > > git log -p -L10,20:foo.c > > for printing the history of lines 10 to 20 of file foo.c Oh. I think it's a shame that vc-command-messages doesn't tell the whole ..= . .