diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-01-10 15:02:27 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-01-10 15:02:27 +0100 |
| commit | 6efe13e701118719a61fee2b6eb465b8fa4a028e (patch) | |
| tree | 32ed5480388a8e9730a5cc950445bf7c59feef98 /lisp/magit-git.el | |
| parent | 46c3d8b0ad0a7e583fc382243ab84b95a1d2da52 (diff) | |
Highlight amend! markers as well
In regular expressions, duplicated the exclamation mark for increased
grepability.
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index c529518..8f0c18b 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -1407,7 +1407,7 @@ Git." (defun magit-rev-fixup-target (rev) (let ((msg (magit-rev-format "%s" rev))) (save-match-data - (and (string-match "\\`\\(fixup\\|squash\\)! \\(.+\\)" msg) + (and (string-match "\\`\\(squash!\\|fixup!\\|amend!\\) \\(.+\\)" msg) (magit-rev-format "%h" (format "%s^{/^%s}" rev (magit--ext-regexp-quote (match-string 2 msg)))))))) |
