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

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

bug#58709: 29.0.50; [PATCH] Fallout 307ad21


From: Matt Armstrong
Subject: bug#58709: 29.0.50; [PATCH] Fallout 307ad21
Date: Mon, 07 Nov 2022 09:39:27 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

Philip Kaludercic <philipk@posteo.net> writes:

> Juri Linkov <juri@linkov.net> writes:
>
>>> Hadn't known vc-refresh-state gets into my find-file-hook
>>> irregardless.  This won't work with git branches in a detached
>>> HEAD state.
>>>...
>>>  (defun vc-git-working-revision (_file)
>>>    "Git-specific version of `vc-working-revision'."
>>>    (let* ((process-file-side-effects nil)
>>> -         (commit (vc-git--rev-parse "HEAD" t)))
>>> -    (or (vc-git-symbolic-commit commit) commit)))
>>
>> Maybe Philip could comment on this (Cc:ed).
>>
>> Regarding the commit 307ad21, what I noticed is that after this commit,
>> typing 'C-c C-w' (log-edit-generate-changelog-from-diff) in log-edit mode,
>> creates temporary buffers with names that contain symbolic revision names
>> in their buffer names instead of hash numbers, that looks very strange.
>
> If that is the case, the change should be reverted, and ideally some
> other way could be found to request that vc-working-revision generates a
> symbolic reference.  Perhaps using a dynamic variable?

Closing as the commit in question was reverted by Philip in the commit
below.

8fe62b2ab5 (Revert "* lisp/vc/vc-git.el (vc-git--rev-parse): Allow abbreviating 
commits", 2022-11-06)





reply via email to

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