1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-07 22:02:56 +03:00

Add a method GitVersion.IsAtLeast

This commit is contained in:
Stefan Haller
2024-01-09 13:27:35 +01:00
parent b657fc4f0b
commit 6255728e63
4 changed files with 20 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ func (self GitVersionRestriction) shouldRunOnVersion(version *git_commands.GitVe
if err != nil {
panic("Invalid git version string: " + self.from)
}
return !version.IsOlderThanVersion(from)
return version.IsAtLeastVersion(from)
}
if self.before != "" {
before, err := git_commands.ParseGitVersion(self.before)