Skip to content

Instantly share code, notes, and snippets.

@techtonik
Created July 9, 2017 12:35
Show Gist options
  • Select an option

  • Save techtonik/341bceb75c551520c0b69184948564ee to your computer and use it in GitHub Desktop.

Select an option

Save techtonik/341bceb75c551520c0b69184948564ee to your computer and use it in GitHub Desktop.

Revisions

  1. techtonik created this gist Jul 9, 2017.
    12 changes: 12 additions & 0 deletions commmittery.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    import os
    from shellrun import run
    from datetime import datetime

    hist = sorted([name for name in os.listdir('.') if name.startswith('appvey') and name != 'appvey.py'])
    print('\n'.join(hist))

    for f in hist:
    tstamp = datetime.fromtimestamp(os.path.getmtime(f))
    run('copy {} appvey.py'.format(f))
    run('git add appvey.py')
    run('git commit -m "hacking.." --date "{}"'.format(tstamp))