commit 06d6684d0854620f4f8d8af3318a4b7cfec1e117 (tree)
parent eb48c6c284a5cadd5720428275099da131531630
Author: Tim Pope <code@tpope.net>
Date: Sat, 30 Jan 2010 00:38:00 -0500
Compare timestamps as integers
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -973,8 +973,8 @@ function! s:buffer_compare_age(commit) dict abort
elseif base ==# a:commit
return 1
endif
- let my_time = self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',self.commit())
- let their_time = self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',a:commit)
+ let my_time = +self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',self.commit())
+ let their_time = +self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',a:commit)
return my_time < their_time ? -1 : my_time != their_time
endfunction