From a31a3f69e9add40d26cc5bc8f044cc9f2cc84d90 Mon Sep 17 00:00:00 2001 From: Jeff Scheel Date: Mon, 8 May 2017 15:43:36 -0500 Subject: [PATCH] Shorten git log records to only those for doc/ directory in opf_docbook.py Signed-off-by: Jeff Scheel --- rst_template/opf_docbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rst_template/opf_docbook.py b/rst_template/opf_docbook.py index d01ca33..e6d2c9d 100644 --- a/rst_template/opf_docbook.py +++ b/rst_template/opf_docbook.py @@ -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('&','&').replace('<','<').replace('>','>').replace('\n','').strip('\x02').split('\x02') log = [row.split('\01') for row in log]