Skip to content
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

Diff does not work if file does not exist in HEAD #5

Open
michaeladler opened this issue Dec 4, 2013 · 0 comments
Open

Diff does not work if file does not exist in HEAD #5

michaeladler opened this issue Dec 4, 2013 · 0 comments

Comments

@michaeladler
Copy link

If I want to review an old commit of a file that no longer exists in HEAD, vim-git-log silently returns and does nothing. My solution was to remove the problematic code part:

if !filereadable(l:repo . '/' . l:filename)
    execute 'cd ' . l:cwd
    return
endif

At the very least you should use echom and warn the user about that behavior, but personally I don't see a reason why that check should exist in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant