Sometimes I have to edit files via a symlink, and then I want git-commit-file to commit the original file, not the symlink itself. A simple tweak is have git-commit-file (in git-emacs.el) use true-filename, i.e., change the second git-commit call to
(git-commit amend (list (file-relative-name (file-truename buffer-file-name))))
In status mode, I'd leave the current behavior unchanged.
Thoughts?
Sometimes I have to edit files via a symlink, and then I want git-commit-file to commit the original file, not the symlink itself. A simple tweak is have
git-commit-file(in git-emacs.el) usetrue-filename, i.e., change the secondgit-commitcall toIn status mode, I'd leave the current behavior unchanged.
Thoughts?