Skip to content

Commit 61f5b64

Browse files
committed
feat!: remove support for yadm
1 parent 3d7e49c commit 61f5b64

File tree

3 files changed

+0
-56
lines changed

3 files changed

+0
-56
lines changed

doc/gitsigns.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -936,18 +936,6 @@ trouble *gitsigns-config-trouble*
936936
When using setqflist() or setloclist(), open Trouble instead of the
937937
quickfix/location list window.
938938

939-
yadm *gitsigns-config-yadm*
940-
DEPRECATED
941-
Please use |gitsigns-config-on_attach_pre| instead
942-
943-
Type: `table`
944-
Default: >
945-
`{
946-
enable = false
947-
}`
948-
<
949-
yadm configuration.
950-
951939
word_diff *gitsigns-config-word_diff*
952940
Type: `boolean`, Default: `false`
953941

lua/gitsigns/config.lua

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
--- @field preview_config table<string,any>
9393
--- @field auto_attach boolean
9494
--- @field attach_to_untracked boolean
95-
--- @field yadm { enable: boolean }
9695
--- @field worktrees {toplevel: string, gitdir: string}[]
9796
--- @field word_diff boolean
9897
--- @field trouble boolean
@@ -111,7 +110,6 @@ local M = {
111110
watch_gitdir = {},
112111
current_line_blame_formatter_opts = {},
113112
current_line_blame_opts = {},
114-
yadm = {},
115113
Worktree = {},
116114
},
117115
}
@@ -810,17 +808,6 @@ M.schema = {
810808
]],
811809
},
812810

813-
yadm = {
814-
type = 'table',
815-
deprecated = {
816-
message = 'Please use |gitsigns-config-on_attach_pre| instead',
817-
},
818-
default = { enable = false },
819-
description = [[
820-
yadm configuration.
821-
]],
822-
},
823-
824811
_git_version = {
825812
type = 'string',
826813
default = 'auto',

lua/gitsigns/git.lua

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -327,35 +327,6 @@ function Repo:update_abbrev_head()
327327
self.abbrev_head = M.get_repo_info(self.toplevel).abbrev_head
328328
end
329329

330-
--- @private
331-
--- @param dir string
332-
--- @param gitdir? string
333-
--- @param toplevel? string
334-
function Repo:try_yadm(dir, gitdir, toplevel)
335-
if not config.yadm.enable or self.gitdir then
336-
return
337-
end
338-
339-
local home = os.getenv('HOME')
340-
341-
if not home or not vim.startswith(dir, home) then
342-
return
343-
end
344-
345-
if #git_command({ 'ls-files', dir }, { command = 'yadm' }) == 0 then
346-
return
347-
end
348-
349-
M.get_repo_info(dir, 'yadm', gitdir, toplevel)
350-
local yadm_info = M.get_repo_info(dir, 'yadm', gitdir, toplevel)
351-
for k, v in
352-
pairs(yadm_info --[[@as table<string,any>]])
353-
do
354-
---@diagnostic disable-next-line:no-unknown
355-
self[k] = v
356-
end
357-
end
358-
359330
--- @async
360331
--- @param dir string
361332
--- @param gitdir? string
@@ -373,8 +344,6 @@ function Repo.new(dir, gitdir, toplevel)
373344
self[k] = v
374345
end
375346

376-
self:try_yadm(dir, gitdir, toplevel)
377-
378347
return self
379348
end
380349

0 commit comments

Comments
 (0)