allow to give additional arguments to git log

This commit is contained in:
Сергей Маринкевич
2022-01-19 17:48:22 +07:00
parent 54a31c4a7a
commit 82ba98414e
+1 -1
View File
@@ -16,7 +16,7 @@ class Commit(object):
self.hash = match.group("hash") self.hash = match.group("hash")
self.title = match.group("title") self.title = match.group("title")
process = subprocess.Popen(["git", "--no-pager", "log", "--decorate=short", "--oneline"], stdout=subprocess.PIPE, stderr=open('/dev/null', 'w')) process = subprocess.Popen(["git", "--no-pager", "log", "--decorate=short", "--oneline"] + sys.argv[1:], stdout=subprocess.PIPE, stderr=open('/dev/null', 'w'))
commits = [] commits = []
for part in process.communicate(): for part in process.communicate():
if part == None: if part == None: