Permalink
Browse files

pass --count option to git for-each-ref

  • Loading branch information...
1 parent c63d79e commit b1b4ef86cdab36d18f34ad00bd323661c8fa7c9e @f110 f110 committed Sep 11, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 autoload/giti/branch_recent.vim
  2. +1 −1 test/autoload/giti/test_branch_recent.vim
@@ -13,7 +13,7 @@ endfunction"}}}
function! s:get_recent_updated_branches(target)"{{{
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')
endfunction"}}}
@@ -26,7 +26,7 @@ function! s:tc.test_recent()"{{{
\ giti#branch_recent#recent(),
\ )
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)
endfunction"}}}

0 comments on commit b1b4ef8

Please sign in to comment.