Open mroth opened 6 years ago
This sounds really interesting, but might break my usage. when I type in git
, it goes from scmpuff
's function, to hub
, and then to git
.
EDIT: I just realized you probably meant that you'd use go-git after the switch statement, so my use of hub
should still be fine
@AndrewSB Yeah, it would be totally internal. Beneath the surface now, scmpuff status
makes a system call to git status -b -z
. This could (in theory) replace that.
https://github.com/src-d/go-git
This could make shelling out to git completely unnecessary, and could remove some of the complex code related to parsing git porcelain output. It could also be overkill beyond something that already mostly works.
In order to do this, it would involve:
status -b
for branch and ahead/behind info)