]> git.eshelyaron.com Git - emacs.git/commit
Make revision completion in vc-diff and vc-root-diff more predictable
authorDmitry Gutov <dmitry@gutov.dev>
Wed, 9 Oct 2024 23:08:53 +0000 (02:08 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 14 Oct 2024 17:37:41 +0000 (19:37 +0200)
commitbcf72db99a3e6b6b8e84065d06438ca633bff00a
tree822d3597bc47539c6448a01934a6a52c0dc80242
parent9438a1d3bd591a5eec9f7d80308cc2674fdd3fdf
Make revision completion in vc-diff and vc-root-diff more predictable

* lisp/vc/vc.el (vc-root-version-diff):
Don't try calling 'vc-deduce-fileset', instead construct a fileset
suitable for the root directory right away.  This way the revision
completion for the root diff doesn't depend on the current buffer,
or the file at point (bug#73232).
(vc-diff-build-argument-list-internal): No special case when
invoked on a directory, or when the current file is not "dirty".
Make REV1-DEFAULT a string value.

* etc/NEWS: Mention the change.

(cherry picked from commit a295d7de9e8cae03fd4be6838d7eee59381791e4)
etc/NEWS
lisp/vc/vc.el