GNU bug report logs - #77529
31.0.50; [Feature Request][VC] How can I get the current revision of the buffer opened by =vc-find-revision=?

Previous Next

Package: emacs;

Reported by: jixiuf <jixiuf <at> qq.com>

Date: Fri, 4 Apr 2025 04:26:01 UTC

Severity: wishlist

Found in version 31.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 77529 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: jixiuf <jixiuf <at> qq.com>
Cc: 77529 <at> debbugs.gnu.org
Subject: Re: bug#77529: 31.0.50;
 [Feature Request][VC] How can I get the current revision of the
 buffer opened by =vc-find-revision=?
Date: Fri, 04 Apr 2025 14:02:50 +0300
> Date: Fri, 04 Apr 2025 12:09:47 +0800
> From:  jixiuf via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> How can I retrieve the current revision when I'm in a buffer opened by
> =vc-find-revision= ?
> 
> I'm attempting to write two commands: =vc-next-revision= and
> =vc-prev-revision=, similar to =magit-blob-next= and
> =magit-blob-previous=.

Emacs already has vc-git-next-revision, so if you need this only
for Git, the function is already there, you just need to wrap it with
a command.

As for vc-prev-revision, isn't that just SHA^, where SHA is the hash
of the revision used to call vc-prev-revision?




This bug report was last modified 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.