fix(diffthis): populate b:gitsigns_head

Fixes #949
This commit is contained in:
Lewis Russell 2024-04-03 11:44:04 +01:00
parent 690f298c4c
commit 50577f0186
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ local cache = require('gitsigns.cache').cache
local util = require('gitsigns.util')
local manager = require('gitsigns.manager')
local message = require('gitsigns.message')
local Status = require('gitsigns.status')
local throttle_by_id = require('gitsigns.debounce').throttle_by_id
@ -38,6 +39,7 @@ local function bufread(bufnr, dbufnr, base)
local modifiable = vim.bo[dbufnr].modifiable
vim.bo[dbufnr].modifiable = true
Status:update(dbufnr, {head = comp_rev})
util.set_lines(dbufnr, 0, -1, text)