gitnu 0.7.1

gitnu indexes your git status so you can use numbers instead of filenames.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
import re, subprocess


def run_sh(*cmd):
    return subprocess.check_output(cmd).decode("utf-8").split("\n")


output = run_sh("git", "--help", "--all")
NOT_WORD = re.compile("\W")

for line in filter(lambda x: len(x) > 0 and NOT_WORD.match(x[0]), output):
    command = line.strip().split(" ", 1)[0]
    print(command)