bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#38044: 27.0.50; There should be an easier way to look at a specific


From: Dmitry Gutov
Subject: bug#38044: 27.0.50; There should be an easier way to look at a specific vc commit
Date: Wed, 20 Nov 2019 21:57:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 20.11.2019 21:40, Dmitry Gutov wrote:
How would that even work? vc-diff will always delegate to vc-git-diff.

It will work if we program either vc-diff or vc-git-diff to call "git
show" under some specific circumstances.

That makes little sense to me, sorry.

What we can try instead:

A new command: vc-describe-revision (for example; call it however you want) which first invokes vc-print-log-internal like vc-annotate-show-log-revision-at-line does, followed by calling vc-diff-internal like vc-annotate-show-diff-revision-at-line-internal does. The only difficulty there is coloring diff output properly. Maybe just take the fontified buffer strings from the above commands and copy them over into a new buffer.





reply via email to

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