Skip to content

Commit

Permalink
When getting content, use 'HEAD' if no rev given.
Browse files Browse the repository at this point in the history
Enable working with 'both modified' paths.
  • Loading branch information
bootleq committed Nov 25, 2011
1 parent a076924 commit f0b9a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/gitdiffall.vim
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function! s:get_content(rev, file) "{{{
" TODO use :<n>:<path> as rev, see gitrevisions(7)
let result = system(printf(
\ "git show %s:%s",
\ a:rev,
\ empty(a:rev) ? 'HEAD' : a:rev,
\ shellescape(a:file)
\ ))
if v:shell_error
Expand Down

0 comments on commit f0b9a7c

Please sign in to comment.