Current base status line integration #1340
Replies: 2 comments 1 reply
-
I currently use this for my statusline: function M.hunks()
if vim.b.gitsigns_status then
local status = vim.b.gitsigns_head
if vim.b.gitsigns_status ~= '' then
status = status .. ' ' .. vim.b.gitsigns_status
end
return status
end
if vim.g.gitsigns_head then
return vim.g.gitsigns_head
end
return ''
end There is also See |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the reply, I had looked at those two things but neither seemed to give me the name of the base , so should I call change_base("origin/master"), I was looking to surface it so I could add next to the branch name in my status line to visually check / remind what the current diff is against. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to surface / display the current base to with a view to displaying in my status line?
Beta Was this translation helpful? Give feedback.
All reactions