Commit dfc6612e authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-format-patch: bugfix

parent eb246415
......@@ -249,8 +249,10 @@ branch as default."
(list (-if-let (revs (magit-region-values 'commit))
(concat (car (last revs)) "^.." (car revs))
(let ((commit (magit-read-range-or-commit "Format range")))
(format "%s~..%s" commit commit)))))
(let ((range (magit-read-range-or-commit "Format range or commit")))
(if (string-match-p "\\.\\." range)
(format "%s~..%s" range range))))))
(magit-run-git "format-patch" range))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment