Dokumentation verschönert
This commit is contained in:
4
gfi-run
4
gfi-run
@@ -32,7 +32,7 @@ if len(sys.argv) <= 1:
|
||||
flname, flext = os.path.splitext(fl)
|
||||
if flext == '.tex':
|
||||
rawdate = int(git.log('-1', fl,
|
||||
pretty='format:"%at"').split('"')[1])
|
||||
pretty='format:"%at"').split('"')[1])
|
||||
date = [time.strftime("%d. %B %Y %H:%M", time.localtime(rawdate)),
|
||||
time.strftime("%d", time.localtime(rawdate)),
|
||||
time.strftime("%m", time.localtime(rawdate)),
|
||||
@@ -40,7 +40,7 @@ if len(sys.argv) <= 1:
|
||||
time.strftime("%H", time.localtime(rawdate)),
|
||||
time.strftime("%M", time.localtime(rawdate))]
|
||||
author = [git.log('-1', fl, pretty='format:"%an"').split('"')[1],
|
||||
git.log('-1', fl, pretty='format:"%ae"').split('"')[1]]
|
||||
git.log('-1', fl, pretty='format:"%ae"').split('"')[1]]
|
||||
commit = [git.log('-1', fl, pretty='format:"%H"').split('"')[1],
|
||||
git.log('-1', fl, pretty='format:"%h"').split('"')[1]]
|
||||
f = codecs.open(flname+".gfi", "w", encoding="utf-8")
|
||||
|
Reference in New Issue
Block a user