Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modify date format

  • Loading branch information...
commit 1545ac583f40d5aad84d07ff5aaf8714ca16abca 1 parent 99880fd
@kmnk authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  autoload/giti/log.vim
  2. +3 −3 test/autoload/giti/test_log.vim
View
2  autoload/giti/log.vim
@@ -46,7 +46,7 @@ function! s:get_list(param)"{{{
\ : g:giti_log_default_line_count
let file = exists('a:param.file') ? a:param.file : ''
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
\ ))
return split(res, '\n')
View
6 test/autoload/giti/test_log.vim
@@ -52,7 +52,7 @@ function! s:tc.test_list()"{{{
\ 'subject' : 'eeee',
\ }])
call self.assert_match(
-\ 'log -1234 --graph --date=relative --pretty=format:".\+" ',
+\ 'log -1234 --graph --date=default --pretty=format:".\+" ',
\ b:system_called_with
\ )
call self.assert_equal(giti#log#list({'line_count' : 4321}), [{
@@ -64,7 +64,7 @@ function! s:tc.test_list()"{{{
\ 'subject' : 'eeee',
\ }])
call self.assert_match(
-\ 'log -4321 --graph --date=relative --pretty=format:".\+" ',
+\ 'log -4321 --graph --date=default --pretty=format:".\+" ',
\ b:system_called_with
\ )
call self.assert_equal(giti#log#list({'file' : 'hoge'}), [{
@@ -76,7 +76,7 @@ function! s:tc.test_list()"{{{
\ 'subject' : 'eeee',
\ }])
call self.assert_match(
-\ 'log -1234 --graph --date=relative --pretty=format:".\+" hoge',
+\ 'log -1234 --graph --date=default --pretty=format:".\+" hoge',
\ b:system_called_with
\ )
endfunction"}}}
Please sign in to comment.
Something went wrong with that request. Please try again.