diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-17 19:59:51 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-07-30 18:35:23 +1000 |
commit | cdfad864ae337b9743a6f6ccc15fe1c088340f94 (patch) | |
tree | 015e27ec1f33071215dc7fce3ead3755500f0044 /pkg/commands | |
parent | fb4453c18a7b53bb3b03006759221b50c856abb0 (diff) |
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
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/git_commands/version.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/commands/git_commands/version.go b/pkg/commands/git_commands/version.go index 7499404c0..a089d7e06 100644 --- a/pkg/commands/git_commands/version.go +++ b/pkg/commands/git_commands/version.go @@ -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) -} |