branch: elpa/magit commit 73752f70977ce067c0a3b0d6a0f33777cb472ccd Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-diff-visit--sides: Abbreviate hashes --- lisp/magit-diff.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el index 2ad7ac19a87..7314eb1b02f 100644 --- a/lisp/magit-diff.el +++ b/lisp/magit-diff.el @@ -1778,9 +1778,10 @@ the Magit-Status buffer for DIRECTORY." (`(,old-rev . ,new-rev) (pcase-exhaustive spec ((pred stringp) - (magit-split-range spec)) + (magit-split-range spec t)) (`(,(or 'commit 'stash) . ,rev) - (cons (concat rev "^") rev)) + (cons (magit-rev-abbrev (concat rev "^")) + (magit--abbrev-if-hash rev))) ((pred symbolp) (cons spec spec)))) (hunk (magit-diff-visit--hunk))