ZyX_I  committed 3bf9942

@%aurum/drivers/git: Made it use HEAD in gettiphex instead of master (restored old behavior)

  • Participants
  • Parent commits ae47ed9
  • Branches default

Comments (0)

Files changed (2)

File autoload/aurum/drivers/git.vim

     let s:prevrevhex[a:repo.path]=[a:rev, r]
     return r
-"▶1 git.gettiphex
-" XXX Uses master or working directory revision instead of latest revision
-function s:git.gettiphex(repo)
-    try
-        return a:repo.functions.getrevhex(a:repo, 'master')
-    catch
-        return a:repo.functions.getworkhex(a:repo)
-    endtry
 "▶1 git.getworkhex :: repo → hex
 function s:git.getworkhex(repo)
     return a:repo.functions.getrevhex(a:repo, 'HEAD')
+"▶1 git.gettiphex
+" XXX Uses HEAD instead of latest revision
+let s:git.gettiphex=s:git.getworkhex
 "▶1 git.setcsprop :: repo, cs, propname → propvalue
 function s:git.setcsprop(repo, cs, prop)
     if a:prop is# 'allfiles'

File test/drivers-git.ok

Binary file modified.