Skip to content

symlinks and git-commit-file #6

Description

@conal

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions