It would be nice to add the cstage and cunstage aliases, which it
appears the code supports already:
$ egrep 'argv|subcommand|action ' /usr/lib/python2.7/dist-packages/git_crecord/main.py -C2
def main():
prog = os.path.basename(sys.argv[0]).replace('-', ' ')
subcommand = prog.split(' ')[-1].replace('.py', '')
if subcommand == 'crecord':
action = 'commit or stage'
elif subcommand == 'cstage':
action = 'stage'
elif subcommand == 'cunstage':
action = 'keep staged'
parser = argparse.ArgumentParser(description='interactively select changes to %s' % action, prog=prog)
--
opts = vars(args)
if subcommand == 'cstage':
opts['index'] = True
if subcommand == 'cunstage':
opts['cached'] = True