ZyX_I  committed 9f74c61

@aurum/drivers/git: Made git driver force git to sort changesets, thus not forcing Vim to do this

  • Participants
  • Parent commits e2c73ce
  • Branches betterinterestingparents

Comments (0)

Files changed (2)

File plugin/aurum/drivers/git.vim

 " author email
 " 1-indented commit message
 let s:logformat='%h-%H-%P-%at%n%an%n%ae%n%d%n%w(0,1,1)%B'
-let s:logkwargs={'format': s:logformat, 'encoding': 'utf-8'}
+let s:logkwargs={'format': s:logformat, 'encoding': 'utf-8', 'date-order': 1}
 function s:F.parsecs(csdata, lstart)
     let line=a:lstart
     let cs={'branch': 'default'}
         let [cs, i]=s:F.parsecs(log, i)
         let a:repo.changesets[cs.hex]=extend(get(a:repo.changesets, cs.hex, {}),
                     \                        cs)
-        let cslist+=[a:repo.changesets[cs.hex]]
+        call insert(cslist, a:repo.changesets[cs.hex])
     return cslist
     let repo={'path': a:path, 'changesets': {}, 'cslist': [],
                 \'local': (stridx(a:path, '://')==-1),
                 \'labeltypes': ['tag', 'branch'],
-                \'hasrevisions': 0}
+                \'hasrevisions': 0, 'requires_sort': 0}
     return repo
 "▶1 git.checkdir :: dir → Bool

File test/git.ok

Binary file modified.