feat: show ahead and behind commits in winbar
This commit is contained in:
@@ -55,6 +55,9 @@ end
|
||||
---Makes API call to get the discussion data, stores it in the state, and calls the callback
|
||||
---@param callback function|nil
|
||||
M.load_discussions = function(callback)
|
||||
local git = require("gitlab.git")
|
||||
local ahead, behind = git.get_ahead_behind(git.get_current_branch(), git.get_remote_branch())
|
||||
state.ahead_behind = { ahead, behind }
|
||||
state.discussion_tree.last_updated = nil
|
||||
state.load_new_state("discussion_data", function(data)
|
||||
if not state.DISCUSSION_DATA then
|
||||
|
||||
Reference in New Issue
Block a user