Class: Overcommit::Hook::PostCheckout::IndexTags

Inherits:
Base
  • Object
show all
Defined in:
lib/overcommit/hook/post_checkout/index_tags.rb

Overview

Scans source code each time HEAD changes to generate an up-to-date index of all function/variable definitions, etc.

Instance Method Summary collapse

Methods inherited from Base

#applicable_files, #description, #enabled?, #execute, #in_path?, #initialize, #name, #quiet?, #required?, #run?, #skip?

Constructor Details

This class inherits a constructor from Overcommit::Hook::Base

Instance Method Details

#runObject



5
6
7
8
9
10
11
12
13
# File 'lib/overcommit/hook/post_checkout/index_tags.rb', line 5

def run
  unless in_path?('ctags')
    return :good # Silently ignore
  end

  index_tags_in_background

  :good
end