Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (24 sloc) 738 Bytes
" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
" Copyright : 2006-2014 by Manpreet Singh
" License : This file is placed in the public domain.
" No warranties express or implied. Use at your own risk.
" Initialization {{{
let s:driver = {}
let s:git = {}
" }}}
function! s:git.detect() " {{{
return isdirectory('.git')
endfunction
" }}}
function! s:git.get_diff() " {{{
let l:diff = s:driver.generate_diff('git diff -p -U5 --no-color')
return {'strip': 1, 'diff': l:diff}
endfunction
" }}}
function! patchreview#git#register(remote) "{{{
let s:driver = a:remote
return s:git
endfunction
" }}}
" vim: set et fdl=1 fdm=marker fenc= ff=unix ft=vim sts=0 sw=2 ts=2 tw=79 nowrap :
"}}}
Jump to Line
Something went wrong with that request. Please try again.