Module: Overcommit::GitConfig

Defined in:
lib/overcommit/git_config.rb

Overview

Get configuration options from git

Class Method Summary collapse

Class Method Details

.comment_characterObject


6
7
8
9
10
# File 'lib/overcommit/git_config.rb', line 6

def comment_character
  char = `git config --get core.commentchar`.chomp
  char = '#' if char == ''
  char
end