feat!: remove support for yadm

This commit is contained in:
Lewis Russell 2024-06-19 14:36:00 +01:00 committed by Lewis Russell
parent 3d7e49c201
commit 61f5b64076
3 changed files with 0 additions and 56 deletions

View file

@ -936,18 +936,6 @@ trouble *gitsigns-config-trouble*
When using setqflist() or setloclist(), open Trouble instead of the
quickfix/location list window.
yadm *gitsigns-config-yadm*
DEPRECATED
Please use |gitsigns-config-on_attach_pre| instead
Type: `table`
Default: >
`{
enable = false
}`
<
yadm configuration.
word_diff *gitsigns-config-word_diff*
Type: `boolean`, Default: `false`

View file

@ -92,7 +92,6 @@
--- @field preview_config table<string,any>
--- @field auto_attach boolean
--- @field attach_to_untracked boolean
--- @field yadm { enable: boolean }
--- @field worktrees {toplevel: string, gitdir: string}[]
--- @field word_diff boolean
--- @field trouble boolean
@ -111,7 +110,6 @@ local M = {
watch_gitdir = {},
current_line_blame_formatter_opts = {},
current_line_blame_opts = {},
yadm = {},
Worktree = {},
},
}
@ -810,17 +808,6 @@ M.schema = {
]],
},
yadm = {
type = 'table',
deprecated = {
message = 'Please use |gitsigns-config-on_attach_pre| instead',
},
default = { enable = false },
description = [[
yadm configuration.
]],
},
_git_version = {
type = 'string',
default = 'auto',

View file

@ -327,35 +327,6 @@ function Repo:update_abbrev_head()
self.abbrev_head = M.get_repo_info(self.toplevel).abbrev_head
end
--- @private
--- @param dir string
--- @param gitdir? string
--- @param toplevel? string
function Repo:try_yadm(dir, gitdir, toplevel)
if not config.yadm.enable or self.gitdir then
return
end
local home = os.getenv('HOME')
if not home or not vim.startswith(dir, home) then
return
end
if #git_command({ 'ls-files', dir }, { command = 'yadm' }) == 0 then
return
end
M.get_repo_info(dir, 'yadm', gitdir, toplevel)
local yadm_info = M.get_repo_info(dir, 'yadm', gitdir, toplevel)
for k, v in
pairs(yadm_info --[[@as table<string,any>]])
do
---@diagnostic disable-next-line:no-unknown
self[k] = v
end
end
--- @async
--- @param dir string
--- @param gitdir? string
@ -373,8 +344,6 @@ function Repo.new(dir, gitdir, toplevel)
self[k] = v
end
self:try_yadm(dir, gitdir, toplevel)
return self
end