Function: magit--rename-reflog-file
magit--rename-reflog-file is a natively compiled function defined in
magit-branch.el.
Signature
(magit--rename-reflog-file OLD NEW)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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))))