-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Be able to get git repository status from global variable #1075
Comments
Sorry but I'll pass, Gitsigns isn't needed for this. |
@lewis6991 Thank you for responding! Can I know why isn't Gitsigns needed for this? My apologise if I missed some obvious reasons, or existing implementations. The reason I ask is that I tried to implement it on my local and it's working, if it's an acceptable feature, I would like to raise a PR if it's allowed. |
I was about to request the same feature and discovered this issue. Like @Aryonal asked, are we missing something? Is there a trivial way to fetch this information already? |
Gitsigns does it contain any code for parsing |
That's unfortunate. Didn't expect it to involve implementing a whole new feature, though.
I forgot that the repositories I was on is a bit unconventional. However,
In both cases, gitsigns correctly shows the diff signs and |
Possibly a bug or missing feature, supporting those variables are in scope. Same for work trees. |
Description
Thanks to
vim.b.gitsigns_*
variables, it's really easy to get git status for a buffer. However, I don't find a similar way to fetch the repository git status. I think it would be helpful if we could get the info from a global variable.Proposal
Create global variables for repository git status, e.g.
vim.g.gitsigns_status
, andvim.g.gitsigns_status_dict
.Stored information
On different verbosity levels, I would imagine the following information could be stored, from low to high
The text was updated successfully, but these errors were encountered: