[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))
- [nongnu] elpa/magit updated (4992c3d1f6 -> 7adad8c8d3), Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 047ad22a37 01/28: make: Undeprecate if-let and when-let, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit f5f26b449d 05/28: magit--git-wash: Insert empty line after error message, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 15bf7dc53d 09/28: magit--insert-log: Ignore magit--git-wash-keep-error again, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 1f17e515cf 06/28: magit--git-{insert, wash}: Potentially use complete error text,
Jonas Bernoulli <=
- [nongnu] elpa/magit 230b91d819 04/28: magit--insert-{diff, log}: Respect magit--git-wash-keep-error, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit b2b07b993e 02/28: Silence checkdoc, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit e254dda362 07/28: magit-diff-highlight-list: Fix case when showing an error, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 76253bda0d 08/28: magit--git-wash-keep-error: Enable by default, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 8a6ca692fe 14/28: magit-process-password-prompt-regexps: Add another user@host lookup, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 7adad8c8d3 28/28: Release version 4.1.3, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit cea06e4d4e 27/28: Bump dependencies, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit e52dedf07f 22/28: magit-stash-{pop, apply}: Stop after successfully installing conflict, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 8cee789f7a 10/28: magit-anything-staged-p: Extend comment about Git v2.46.{0, 1} bugs, Jonas Bernoulli, 2024/12/06
- [nongnu] elpa/magit 70aa9eeee0 20/28: Update changelog, Jonas Bernoulli, 2024/12/06