1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Remove worktree version guards

Our min required git version is 2.20 so there's no need to add guards
for worktrees because they were added in 2.5
This commit is contained in:
Jesse Duffield
2023-07-17 19:59:51 +10:00
parent fb4453c18a
commit cdfad864ae
4 changed files with 15 additions and 36 deletions

View File

@ -69,7 +69,3 @@ func (v *GitVersion) IsOlderThan(major, minor, patch int) bool {
func (v *GitVersion) IsOlderThanVersion(version *GitVersion) bool {
return v.IsOlderThan(version.Major, version.Minor, version.Patch)
}
func (v *GitVersion) SupportsWorktrees() bool {
return !v.IsOlderThan(2, 5, 0)
}