Function: magit--rename-reflog-file
magit--rename-reflog-file is a byte-compiled function defined in
magit-branch.el.
Signature
(magit--rename-reflog-file OLD NEW)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-branch.el
(defun magit--rename-reflog-file (old new)
(let* ((dir (magit-gitdir))
(old (expand-file-name (concat "logs/" old) dir))
(new (expand-file-name (concat "logs/" new) dir)))
(when (file-exists-p old)
(make-directory (file-name-directory new) t)
(rename-file old new t))))