-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Improve fugitive integration #1603
Conversation
It which requires a path, and just performed the same as fugitive#head() does internally.
Only changes anything in the case of using fugitive to show a file that is not from the current working directory.
The initial reason in #237 is not valid anymore, as vim-gitgutter functions as expected for editing files that are not part of a repo, whether they are: - in a different repo - in a parent repo (cwd being a submodule) - outside of the repo Furthermore, removing this check allows to show relevant info for specific fugitive file names that are fugitive://..../sha1//... which are hard to parse manually, especially in complicated situations such as submodules.
thanks, looks good. However I'd like to get some feedback before merging this. |
Yeah, I'm not 100% sure about everything pertaining to the new |
|
||
function! s:update_git_branch(path) | ||
" Fugitive special revisions. call '0' "staging" ? | ||
let s:names = {'0': 'index', '1': 'ancestor', '2':'target', '3':'merged'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After using this for a couple of days, I think the names used in merging are confusing. But then again, I virtually never merge, I always rebase, so if someone could look at if that makes sense. '0':'index'
is fine, and I've gotten the other values from :help fugitive-revision
Another thing that could be useful with per-buffer VCS information is to display it even for non-active buffers. Otherwise I've found this feature to smoothen my daily workflow quite a lot. Maybe showing something like |
I am going to merge this. Let's see what happens :) |
Also fixes #1607. |
I update my vim-airline to this commit, it would infinitly run a command on git diff mode created by fugitive gitcommit window. I'm not sure it is diff or not. I just see task bar on bottom flashing a window. OS: Windows 7 |
I
The only 2 other calls are in branch.vim, |
@22earth Does #1620 fix this for you? |
@Cimbali Now, it's OK. THX! |
Improve fugitive integration
Fixes #1591 and improves display of git metadata of fugitive files, by showing:
8d4355(master)
for exampleAlso fix not recognizing files as part of repos correctly, when inside submodules.