ZyX_I avatar ZyX_I committed 3bf9942

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

Comments (0)

Files changed (2)

autoload/aurum/drivers/git.vim

     let s:prevrevhex[a:repo.path]=[a:rev, r]
     return r
 endfunction
-"▶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
-endfunction
 "▶1 git.getworkhex :: repo → hex
 function s:git.getworkhex(repo)
     return a:repo.functions.getrevhex(a:repo, 'HEAD')
 endfunction
+"▶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'

Binary file modified.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.