summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-07-17 19:59:51 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-07-30 18:35:23 +1000
commitcdfad864ae337b9743a6f6ccc15fe1c088340f94 (patch)
tree015e27ec1f33071215dc7fce3ead3755500f0044 /pkg/commands
parentfb4453c18a7b53bb3b03006759221b50c856abb0 (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.go4
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)
-}