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: Philip Kaludercic
Subject: bug#58709: 29.0.50; [PATCH] Fallout 307ad21
Date: Wed, 26 Oct 2022 07:16:26 +0000

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?





reply via email to

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