Module: VER::Methods::Git

Defined in:
config/plugin/git.rb

Class Method Summary collapse

Class Method Details

.git_blame(text, count = 1) ⇒ Object



17
18
19
20
21
# File 'config/plugin/git.rb', line 17

def self.git_blame(text, count = 1)
  line = text.index(:insert).y
  from, to = line - count, line + count
  open_rxvt(text, "git blame #{text.filename} -L#{from},#{to}")
end

.open_rxvt(text, command) ⇒ Object



23
24
25
# File 'config/plugin/git.rb', line 23

def self.open_rxvt(text, command)
  Preview.open_rxvt(text, command)
end