Skip to content

Commit 63b2197

Browse files
committed
chore: remove fallbacks for deprecations over 6 months old
1 parent 6afecde commit 63b2197

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

lua/tinygit/config.lua

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -127,61 +127,6 @@ function M.setup(userConfig)
127127
M.config = vim.tbl_deep_extend("force", defaultConfig, userConfig or {})
128128
local function warn(msg) require("tinygit.shared.utils").notify(msg, "warn", { ft = "markdown" }) end
129129

130-
-- DEPRECATION (2024-11-23)
131-
---@diagnostic disable: undefined-field
132-
if
133-
M.config.staging
134-
or M.config.commitMsg
135-
or M.config.historySearch
136-
or M.config.issueIcons
137-
or M.config.backdrop
138-
or M.config.mainIcon
139-
or (M.config.commit and (M.config.commit.commitPreview or M.config.commit.insertIssuesOnHash))
140-
then
141-
warn([[The config structure has been overhauled:
142-
- `staging` → `stage`
143-
- `commitMsg` → `commit`
144-
- `commitMsg.commitPreview` → `commit.preview`
145-
- `commitMsg.insertIssuesOnHash` → `commit.insertIssuesOnHashSign`
146-
- `historySearch` → `history`
147-
- `issueIcons` → `github.icons`
148-
- `backdrop` → `appearance.backdrop`
149-
- `mainIcon` → `appearance.mainIcon`]])
150-
end
151-
152-
-- DEPRECATION (2024-12-28)
153-
if M.config.commit.insertIssuesOnHashSign then
154-
warn(
155-
"The `commit.insertIssuesOnHashSign` feature has been removed. Since "
156-
.. "the commit creation window is now larger, much better issue insertion "
157-
.. "via plugins like `cmp-git` now works there."
158-
)
159-
end
160-
161-
-- DEPRECATION (2024-12-28)
162-
if M.config.commit.commitPreview then
163-
warn("The config `commit.commitPreview` has been removed. It is now enabled by default.")
164-
end
165-
if M.config.commit.inputFieldWidth then
166-
warn(
167-
"The config `commit.inputFieldWidth` has been removed, since there is no longer a need for it."
168-
)
169-
end
170-
if M.config.push.preventPushingFixupOrSquashCommits then
171-
warn(
172-
"The config `push.preventPushingFixupOrSquashCommits` has moved to `push.preventPushingFixupCommits`."
173-
)
174-
end
175-
176-
-- DEPRECATION (2025-01-13)
177-
if M.config.commit.conventionalCommits then
178-
warn(
179-
"The config `commit.conventionalCommits` has moved to `commit.subject.enforceType`, and `commit.conventionalCommits.keywords` was moved to `commit.subject.types`."
180-
)
181-
end
182-
183-
---@diagnostic enable: undefined-field
184-
185130
-- VALIDATE border `none` does not work with and title/footer used by this plugin
186131
if M.config.history.diffPopup.border == "none" or M.config.history.diffPopup.border == "" then
187132
M.config.history.diffPopup.border = fallbackBorder

0 commit comments

Comments
 (0)