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

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

[nongnu] elpa/magit 1f17e515cf 06/28: magit--git-{insert, wash}: Potenti


From: Jonas Bernoulli
Subject: [nongnu] elpa/magit 1f17e515cf 06/28: magit--git-{insert, wash}: Potentially use complete error text
Date: Fri, 6 Dec 2024 17:17:03 -0500 (EST)

branch: elpa/magit
commit 1f17e515cfbef3acfd2bdf990cd206d6ae02010b
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    magit--git-{insert,wash}: Potentially use complete error text
---
 lisp/magit-git.el | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 2c800f72a2..281fdc232e 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -485,9 +485,12 @@ insert the run command and stderr into the process buffer."
                     (insert-file-contents log)
                     (goto-char (point-max))
                     (setq errmsg
-                          (if (functionp magit-git-debug)
-                              (funcall magit-git-debug (buffer-string))
-                            (magit--locate-error-message))))
+                          (cond
+                           ((eq return-error 'full)
+                            (buffer-string))
+                           ((functionp magit-git-debug)
+                            (funcall magit-git-debug (buffer-string)))
+                           ((magit--locate-error-message)))))
                   (when magit-git-debug
                     (let ((magit-git-debug nil))
                       (with-current-buffer (magit-process-buffer t)
@@ -558,7 +561,7 @@ call function WASHER with ARGS as its sole argument."
   (declare (indent 2))
   (setq args (flatten-tree args))
   (let ((beg (point))
-        (exit (magit--git-insert keep-error args)))
+        (exit (magit--git-insert (and keep-error 'full) args)))
     (when (stringp exit)
       (goto-char beg)
       (insert (propertize exit 'face 'error))



reply via email to

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