lsedlar / pag

Forked from pag 9 years ago
Clone

ca2e46b Fix getting current branch

Authored and Committed by lsedlar 7 years ago
    Fix getting current branch
    
    Running `git branch --contains` returns all branches that contain
    current commit. There can be multiple branches like that, which results
    in garbage value being returned.
    
    New implementation will return the branch that git thinks is checked out
    currently. It will report detached HEAD state properly.
    
        
file modified
+5 -2
file added
+57