-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of symlinked files #10
Comments
Could you create a minimal scenario where the bug can be reproduced? |
Here's the script to create the two repos: https://gist.github.com/dhaley/9692370 then: /Applications/Emacs.app/Contents/MacOS/Emacs -Q & (add-to-list 'load-path " (global-git-gutter+-mode t) M-x toggle-debug-on-error (find-file "/tmp/repo2/cu.aliases.drushrc.php") Then make changes to cu.aliases.drushrc.php and a save should trigger the backtrace. Also all libraries mentioned are the latest HEAD from github. |
For now, I've disabled git-gutter+ on symlinked files. Transparently forwarding all git-gutter+ operations to the linked file would require respecting the foreign file path and directory in all git calls and passing them to all (temp) buffers created by git-gutter+ that might depend on it. I'd like to avoid all the complexities involved. To all users: Another possible solution: An option to automatically open the original file when |
Count me in. My life is full of configuration files that are checked into git and that live in /etc only by virtue of a symbolic link. |
Hi, i think opening the original would be the best choice. |
Could you check where this is implemented? |
It appears to be what is mentioned here: http://stackoverflow.com/questions/15390178/emacs-and-symbolic-links which seems to be some standard emacs configuration: https://www.gnu.org/software/emacs/manual/html_node/emacs/General-VC-Options.html Atleast in spacemacs i have not seen any problems with symlinks, but i am not sure if this is truely related to the git-gutter+ problem (as far as i can see, spacemacs uses plain git-gutter). |
Thanks! @domq:
git-gutter just silently fails on symlinked files. (No diffs are shown.) |
Maybe git-gutter+ could change to rely more on vc and vc-git's code to deal with paths, symlinks and tramp? In my current workflow, all vc commands work fine even in the "worst case" (remote file w/ symlinks in directory part of their paths). |
Very similar to issue #1, I am getting a stack trace when accessing a symlink (in a git repo) that references a file in another git repo.
This happens with the latest HEAD.
https://gist.github.com/dhaley/9691309
The text was updated successfully, but these errors were encountered: