Skip to content

Commit

Permalink
Modify date format
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnk committed May 14, 2013
1 parent 99880fd commit 1545ac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autoload/giti/log.vim
Expand Up @@ -46,7 +46,7 @@ function! s:get_list(param)"{{{
\ : g:giti_log_default_line_count \ : g:giti_log_default_line_count
let file = exists('a:param.file') ? a:param.file : '' let file = exists('a:param.file') ? a:param.file : ''
let res = giti#system(printf( let res = giti#system(printf(
\ 'log -%d --graph --date=relative --pretty=format:"%s" %s', \ 'log -%d --graph --date=default --pretty=format:"%s" %s',
\ line_count, s:pretty_format, file \ line_count, s:pretty_format, file
\ )) \ ))
return split(res, '\n') return split(res, '\n')
Expand Down
6 changes: 3 additions & 3 deletions test/autoload/giti/test_log.vim
Expand Up @@ -52,7 +52,7 @@ function! s:tc.test_list()"{{{
\ 'subject' : 'eeee', \ 'subject' : 'eeee',
\ }]) \ }])
call self.assert_match( call self.assert_match(
\ 'log -1234 --graph --date=relative --pretty=format:".\+" ', \ 'log -1234 --graph --date=default --pretty=format:".\+" ',
\ b:system_called_with \ b:system_called_with
\ ) \ )
call self.assert_equal(giti#log#list({'line_count' : 4321}), [{ call self.assert_equal(giti#log#list({'line_count' : 4321}), [{
Expand All @@ -64,7 +64,7 @@ function! s:tc.test_list()"{{{
\ 'subject' : 'eeee', \ 'subject' : 'eeee',
\ }]) \ }])
call self.assert_match( call self.assert_match(
\ 'log -4321 --graph --date=relative --pretty=format:".\+" ', \ 'log -4321 --graph --date=default --pretty=format:".\+" ',
\ b:system_called_with \ b:system_called_with
\ ) \ )
call self.assert_equal(giti#log#list({'file' : 'hoge'}), [{ call self.assert_equal(giti#log#list({'file' : 'hoge'}), [{
Expand All @@ -76,7 +76,7 @@ function! s:tc.test_list()"{{{
\ 'subject' : 'eeee', \ 'subject' : 'eeee',
\ }]) \ }])
call self.assert_match( call self.assert_match(
\ 'log -1234 --graph --date=relative --pretty=format:".\+" hoge', \ 'log -1234 --graph --date=default --pretty=format:".\+" hoge',
\ b:system_called_with \ b:system_called_with
\ ) \ )
endfunction"}}} endfunction"}}}
Expand Down

0 comments on commit 1545ac5

Please sign in to comment.