Sha256: 55e02ca49e48775a104f16917f504e70e4970582e25ce1f3afc9877bc4c34e75
Contents?: true
Size: 477 Bytes
Versions: 14
Compression:
Stored size: 477 Bytes
Contents
require 'forwardable' module Overcommit::Hook::PostCheckout # Functionality common to all post-checkout hooks. class Base < Overcommit::Hook::Base extend Forwardable def_delegators :@context, :previous_head, :new_head, :branch_checkout?, :file_checkout? def skip_file_checkout? @config['skip_file_checkout'] != false end def enabled? return false if file_checkout? && skip_file_checkout? super end end end
Version data entries
14 entries across 12 versions & 2 rubygems