Sha256: 7c91fc3f20506c99842795f277640d7d847f0aa1bbcc71747ebe64d7a45b59e4
Contents?: true
Size: 327 Bytes
Versions: 29
Compression:
Stored size: 327 Bytes
Contents
module Utils class LineBlamer def initialize(file, lineno = 1) @file, @lineno = file, lineno end def self.for_line(line) location = line.source_location and new(*location) end def perform(options = '') `git 2>/dev/null blame #{options} -L #@lineno,+1 "#@file"`.full? end end end
Version data entries
29 entries across 29 versions & 1 rubygems