[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vc-region-history: HG?

From: Richard Copley
Subject: Re: vc-region-history: HG?
Date: Tue, 16 Jan 2018 19:08:32 +0000

On 16 January 2018 at 18:41, Óscar Fuentes <address@hidden> wrote:
> Uwe Brauer <address@hidden> writes:
>> But, what is the underlying git command? I tried to debug the function
>> and couldn't figure it out.


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 = 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 
> supported?
>                 (format "-L%d,%d:%s" lfrom lto (file-relative-name file)))
> lfrom and lto are line numbers.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]