Sha256: c3c88bd1b8a53222b9fd0ddacae7fac5a67d144b17bb46a3b90a4ae1276b9d4c
Contents?: true
Size: 392 Bytes
Versions: 31
Compression:
Stored size: 392 Bytes
Contents
# Returns the version of the available git binary. # # This is intended to be used to conveniently execute code based on a specific # git version. Simply compare to a version string: # # @example # if GIT_VERSION <= '1.8.5' # ... # end module Overcommit GIT_VERSION = begin version = `git --version`.chomp[/\d+(\.\d+)+/, 0] Overcommit::Utils::Version.new(version) end end
Version data entries
31 entries across 29 versions & 2 rubygems