GNU bug report logs -
#73232
[PATCH] Allow vc-diff to suggest a default revision in vc-dir
Previous Next
Reported by: Spencer Baugh <sbaugh <at> janestreet.com>
Date: Fri, 13 Sep 2024 15:53:01 UTC
Severity: normal
Tags: patch
Done: Dmitry Gutov <dmitry <at> gutov.dev>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Cc: Juri Linkov <juri <at> linkov.net>
> Date: Fri, 13 Sep 2024 11:51:47 -0400
> From: Spencer Baugh via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> - ;; if it's a directory, don't supply any revision default
> - ((file-directory-p first)
> - nil)
> ;; if the file is not up-to-date, use working revision as older revision
> - ((not (vc-up-to-date-p first))
> - (setq rev1-default (vc-working-revision first)))
> + ((not (and (file-directory-p first) (vc-up-to-date-p first)))
> + (setq rev1-default (vc-working-revision first backend)))
Doesn't this change the conditions under which we use
vc-working-revision for regular files? Did you perhaps mean
((and (not (file-directory-p first)) (vc-up-to-date-p first))
instead?
This bug report was last modified 223 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.