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

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

[nongnu] elpa/git-commit 2dbce24a6f 2/3: magit-log-merged: Fix for commi


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit 2dbce24a6f 2/3: magit-log-merged: Fix for commits made directly on branch
Date: Thu, 26 May 2022 18:58:19 -0400 (EDT)

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

    magit-log-merged: Fix for commits made directly on branch
---
 lisp/magit-log.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index 7045f25d78..8e4002c080 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -835,7 +835,7 @@ https://github.com/mhagger/git-when-merged.";
                        m))
          args files nil commit)
       (setq m (string-trim m))
-      (if (equal m "Commit is directly on this branch.")
+      (if (string-suffix-p "Commit is directly on this branch." m)
           (let* ((from (concat commit "~10"))
                  (to (- (car (magit-rev-diff-count branch commit)) 10))
                  (to (if (<= to 0)



reply via email to

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