Sha256: dad5c0dd78fecfbfbcf3dd8f7c870d82b4ae4bac2b8b1047434ac1696ffe6d96
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
module Grit class Repo def diff(a, b, *paths) diff = self.git.native('diff', { 'no-ext-diff' => true }, a, b, '--', *paths) if diff =~ /diff --git a/ diff = diff.sub(/.*?(diff --git a)/m, '\1') else diff = '' end Diff.list_from_string(self, diff) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commit_filter-0.1.1 | lib/commit_filter/grit_extension.rb |
commit_filter-0.1.0 | lib/commit_filter/grit_extension.rb |