fix(#1720): .git watch only FETCH_HEAD, HEAD, HEAD.lock, config, index (#1732)

* fix(#1720): .git watch only HEAD, config and index

* fix(#1720): .git watch only FETCH_HEAD, HEAD, HEAD.lock, config, index
This commit is contained in:
Alexander Courtis
2022-11-12 14:38:33 +11:00
committed by GitHub
parent 7e892767bd
commit bcb2a5a80d
3 changed files with 20 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ function M.create_watcher(absolute_path)
end
M.uid = M.uid + 1
return Watcher:new(absolute_path, callback, {
return Watcher:new(absolute_path, nil, callback, {
context = "explorer:watch:" .. absolute_path .. ":" .. M.uid,
})
end