all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: Dmitry Gutov <dmitry@gutov.dev>, Eli Zaretskii <eliz@gnu.org>,
	68183@debbugs.gnu.org, Tom Tromey <tom@tromey.com>,
	Juri Linkov <juri@linkov.net>
Subject: bug#68183: 28.3; vc-dir fails when I have a certain branch checked out
Date: Wed, 21 Aug 2024 09:05:50 +0200	[thread overview]
Message-ID: <86wmkaqrsh.fsf@kevinlegouguec.net> (raw)
In-Reply-To: <87msl6tzyz.fsf@melete.silentflame.com> (Sean Whitton's message of "Wed, 21 Aug 2024 09:40:52 +0800")

[-- Attachment #1: Type: text/plain, Size: 692 bytes --]

Sean Whitton <spwhitton@spwhitton.name> writes:

> Hello,
>
> On Wed 21 Aug 2024 at 03:42am +03, Dmitry Gutov wrote:
>
>> NEWS for emacs-30 sounds good, 

(ACK'ing Eli's request to submit here for review before pushing 👌)

>>                                and I've pushed the other two changes (tests
>> and refactoring) to the master branch.

(Thanks!)

> Hang on, I think Kevin hadn't incorporated my requested changes into
> that version :)

(Right, I've been less reactive than ideal these past few days,
apologies for that)

> Kevin, could you provide a follow-up patch, please?  Thanks.

Something like the attached, right?  Tested manually with a rebase.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Restore-vc-git-helper-function-bug-68183.patch --]
[-- Type: text/x-diff, Size: 1648 bytes --]

From beb4fd8874fb4c03ce2b8b789bcb7a4b7ee411b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= <kevin.legouguec@gmail.com>
Date: Wed, 21 Aug 2024 08:45:00 +0200
Subject: [PATCH] Restore vc-git helper function (bug#68183)

* lisp/vc/vc-git.el (vc-git--cmds-in-progress): Restore; it was
removed in a previous refactoring patch, but we may still find
some use for it.
(vc-git-dir--in-progress-headers): Use it.
---
 lisp/vc/vc-git.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 4d631c7e032..dedf6fdd219 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -748,8 +748,8 @@ or an empty string if none."
                    (and tracking (fmt "Tracking" tracking))
                    (and remote-url (fmt "Remote" remote-url)))))))
 
-(defun vc-git-dir--in-progress-headers ()
-  "Return headers for Git commands in progress in this worktree."
+(defun vc-git--cmds-in-progress ()
+  "Return a list of Git commands in progress in this worktree."
   (let ((gitdir (vc-git--git-path))
         cmds)
     ;; See contrib/completion/git-prompt.sh in git.git.
@@ -765,6 +765,11 @@ or an empty string if none."
       (push 'merge cmds))
     (when (file-exists-p (expand-file-name "BISECT_START" gitdir))
       (push 'bisect cmds))
+    cmds))
+
+(defun vc-git-dir--in-progress-headers ()
+  "Return headers for Git commands in progress in this worktree."
+  (let ((cmds (vc-git--cmds-in-progress)))
     (cl-flet ((fmt (cmd name)
                 (when (memq cmd cmds)
                   ;; For now just a heading, key bindings can be added
-- 
2.39.2


  reply	other threads:[~2024-08-21  7:05 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-31 18:59 bug#68183: 28.3; vc-dir fails when I have a certain branch checked out Tom Tromey
2023-12-31 19:34 ` Eli Zaretskii
2023-12-31 20:14   ` Tom Tromey
2024-01-03  9:46     ` Kévin Le Gouguec
2024-02-12  8:08       ` Kévin Le Gouguec
2024-02-14 19:56         ` Kévin Le Gouguec
2024-03-13 20:03           ` Kévin Le Gouguec
2024-03-15  2:57           ` Dmitry Gutov
2024-03-16 17:56             ` Kévin Le Gouguec
2024-03-17  1:06               ` Dmitry Gutov
2024-03-17 18:09                 ` Kévin Le Gouguec
2024-03-18 15:26                   ` Dmitry Gutov
2024-08-07 14:25                     ` Kévin Le Gouguec
2024-08-08  0:32                       ` Sean Whitton
2024-08-08  7:07                         ` Kévin Le Gouguec
2024-08-08 12:02                           ` Sean Whitton
2024-08-13  1:32                       ` Dmitry Gutov
2024-08-20  6:15                         ` Kévin Le Gouguec
2024-08-20 12:15                           ` Eli Zaretskii
2024-08-22  7:15                             ` Kévin Le Gouguec
2024-08-22 12:46                               ` Eli Zaretskii
2024-08-29 15:36                                 ` Kévin Le Gouguec
2024-08-29 15:46                                   ` Eli Zaretskii
2024-08-29 16:41                                     ` Kévin Le Gouguec
2024-08-21  0:42                           ` Dmitry Gutov
2024-08-21  1:40                             ` Sean Whitton
2024-08-21  7:05                               ` Kévin Le Gouguec [this message]
2024-08-21  7:59                                 ` Sean Whitton
2024-08-21 12:29                                   ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wmkaqrsh.fsf@kevinlegouguec.net \
    --to=kevin.legouguec@gmail.com \
    --cc=68183@debbugs.gnu.org \
    --cc=dmitry@gutov.dev \
    --cc=eliz@gnu.org \
    --cc=juri@linkov.net \
    --cc=spwhitton@spwhitton.name \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.