diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-01-21 09:17:55 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-01-21 09:17:55 +0100 |
| commit | 12ebac612aedacc77e8146058f248311bf50b717 (patch) | |
| tree | 35fa71e3f2f59fa67e7e921b8d604bcd27c64ff0 | |
| parent | 405042afeb18f07c130c8a4676f3a8152325f80e (diff) | |
magit-hash-range: Add docstring
| -rw-r--r-- | lisp/magit-git.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index eb78174..63ea9f1 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -2588,6 +2588,9 @@ and this option only controls what face is used.") (list beg end sep))))) (defun magit-hash-range (range) + "Return a string with the revisions in RANGE replaced with commit oids. +Either side of RANGE may be omitted, and RANGE may be just a revision. +If either revision cannot be dereferenced as a commit, signal an error." (if (string-match magit-range-re range) (magit-bind-match-strings (beg sep end) range (and (or beg end) |
