lib/braid.rb in braid-1.1.3 vs lib/braid.rb in braid-1.1.4

- old
+ new

@@ -1,10 +1,21 @@ require 'braid/version' module Braid OLD_CONFIG_FILE = '.braids' CONFIG_FILE = '.braids.json' - REQUIRED_GIT_VERSION = '1.6' + + # See the background in the "Supported environments" section of README.md. + # + # The newest Git feature that Braid is currently known to rely on is + # `receive.denyCurrentBranch = updateInstead` (in + # spec/integration/push_spec.rb), which was added in Git 2.3.0 (in 2015). It + # doesn't seem worth even a small amount of work to remove that dependency and + # support even older versions of Git. So set that as the declared requirement + # for now. In general, a reasonable approach might be to try to support the + # oldest version of Git in current "long-term support" versions of popular OS + # distributions. + REQUIRED_GIT_VERSION = '2.3.0' def self.verbose !!@verbose end