Skip to content

Commit

Permalink
pass --count option to git for-each-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
f110 committed Sep 11, 2013
1 parent c63d79e commit b1b4ef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/giti/branch_recent.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endfunction"}}}


function! s:get_recent_updated_branches(target)"{{{ function! s:get_recent_updated_branches(target)"{{{
return split( return split(
\ giti#system('for-each-ref --sort=-committerdate --format="%(refname:short),%(committerdate:relative),%(objectname:short),%(contents:subject)" ' . a:target), \ giti#system('for-each-ref --sort=-committerdate --count=30 --format="%(refname:short),%(committerdate:relative),%(objectname:short),%(contents:subject)" ' . a:target),
\ '\n') \ '\n')
endfunction"}}} endfunction"}}}


Expand Down
2 changes: 1 addition & 1 deletion test/autoload/giti/test_branch_recent.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function! s:tc.test_recent()"{{{
\ giti#branch_recent#recent(), \ giti#branch_recent#recent(),
\ ) \ )
call self.assert_equal( call self.assert_equal(
\ 'for-each-ref --sort=-committerdate --format="%(refname:short),%(committerdate:relative),%(objectname:short),%(contents:subject)" refs/heads/', \ 'for-each-ref --sort=-committerdate --count=30 --format="%(refname:short),%(committerdate:relative),%(objectname:short),%(contents:subject)" refs/heads/',
\ b:system_called_with) \ b:system_called_with)
endfunction"}}} endfunction"}}}


Expand Down

0 comments on commit b1b4ef8

Please sign in to comment.