Created
May 31, 2014 22:49
-
-
Save sanmiguel/4c1871780f0f12ac843b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import powerline.lib.vcs as plvcs | |
| import pygit2 as git | |
| name = os.getcwd() | |
| repo = git.Repository(name) | |
| branch = repo.lookup_branch(repo.head.shorthand) | |
| upstream = branch.upstream |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment