Permalink
Switch branches/tags
Nothing to show
Find file Copy path
cf2eb42 Nov 2, 2018
1 contributor

Users who have contributed to this file

executable file 18 lines (13 sloc) 310 Bytes
#!/usr/bin/python3
from sys import argv, stderr
import subprocess
if len(argv) < 3: usage()
if argv[1].startswith('%'):
item = argv[1]
ids = argv[2:]
else:
item='%cd'
ids = argv[1:]
for id in ids:
subprocess.run([ "git", "--no-pager",
"log", "-1", "--format=%h " + item, id])