aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-09-01 03:10:00 +0200
committerJonas Bernoulli <jonas@bernoul.li>2025-09-01 03:10:00 +0200
commitc59ac90f6cc43034515e6cffb96231c9ccda7083 (patch)
treed1d73951bf880edc7a22ba25352faf03cead2965 /lisp
parent50706e095d70b627bb80bd0602803c7e3797fb53 (diff)
magit-blob-{ancestor,successor}: Abbreviate returned hash
Diffstat (limited to 'lisp')
-rw-r--r--lisp/magit-files.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/magit-files.el b/lisp/magit-files.el
index 3d32330..e60e87a 100644
--- a/lisp/magit-files.el
+++ b/lisp/magit-files.el
@@ -423,7 +423,7 @@ the same location in the respective file in the working tree."
(defun magit-blob-ancestor (rev file)
(nth (if rev 1 0)
(seq-partition (magit-with-toplevel
- (magit-git-lines "log" "-2" "--format=%H" "--name-only"
+ (magit-git-lines "log" "-2" "--format=%h" "--name-only"
"--follow" (or rev "HEAD") "--" file))
2)))
@@ -431,7 +431,7 @@ the same location in the respective file in the working tree."
(pcase rev
("{worktree}" nil)
(_ (let ((lines (magit-with-toplevel
- (magit-git-lines "log" "--format=%H" "--name-only"
+ (magit-git-lines "log" "--format=%h" "--name-only"
"--follow" "HEAD" "--" file))))
(catch 'found
(while lines