emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/git-commit f34913f669 06/10: magit-diff-refresh-buffer: Us


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit f34913f669 06/10: magit-diff-refresh-buffer: Use nicer title while committing --all
Date: Tue, 7 Jun 2022 10:58:26 -0400 (EDT)

branch: elpa/git-commit
commit f34913f6691f0d73f146e0010593b984803e162c
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    magit-diff-refresh-buffer: Use nicer title while committing --all
---
 lisp/magit-diff.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index f6bdc6522c..9609a000b6 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -1947,9 +1947,12 @@ Staging and applying changes is documented in info node
                    (format "Changes from working tree to %s" 
magit-buffer-range))
                   (t
                    (format "Changes from %s to working tree" 
magit-buffer-range)))
-               (if (equal magit-buffer-typearg "--cached")
-                   "Staged changes"
-                 "Unstaged changes"))
+               (cond ((equal magit-buffer-typearg "--cached")
+                      "Staged changes")
+                     ((and (magit-repository-local-get 'this-commit-command)
+                           (not (magit-anything-staged-p)))
+                      "Uncommitting changes")
+                     (t "Unstaged changes")))
              (pcase (length magit-buffer-diff-files)
                (0)
                (1 (concat " in file " (car magit-buffer-diff-files)))



reply via email to

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