Shorten git log records to only those for doc/ directory in opf_docbook.py

Signed-off-by: Jeff Scheel <scheel@us.ibm.com>
Jeff Scheel 8 years ago
parent 6417c76a6f
commit a31a3f69e9

@ -145,7 +145,7 @@ def build_revhistory(book_file):
log_fields = ['id', 'author', 'date', 'subject']

# Retrieve log
pipe = Popen('git log --date=iso --format="%s"' % log_format, shell=True, stdout=PIPE)
pipe = Popen('git log --date=iso --format="%s" -- doc doc' % log_format, shell=True, stdout=PIPE)
log, _ = pipe.communicate()
log = log.replace('&','&amp;').replace('<','&lt;').replace('>','&gt;').replace('\n','').strip('\x02').split('\x02')
log = [row.split('\01') for row in log]

Loading…
Cancel
Save