mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Update credits for 5.11.0 (#15753)
This commit is contained in:
parent
0fa56a9f7c
commit
1548b2ae9e
2 changed files with 13 additions and 15 deletions
|
@ -6,7 +6,7 @@ from collections import defaultdict
|
|||
codefiles = r"(\.[ch](pp)?|\.lua|\.md|\.cmake|\.java|\.gradle|Makefile|CMakeLists\.txt)$"
|
||||
|
||||
# two minor versions back, for "Active Contributors"
|
||||
REVS_ACTIVE = "5.8.0..HEAD"
|
||||
REVS_ACTIVE = "5.9.0..HEAD"
|
||||
# all time, for "Previous Contributors"
|
||||
REVS_PREVIOUS = "HEAD"
|
||||
|
||||
|
@ -27,7 +27,7 @@ def load(revs):
|
|||
p2 = subprocess.Popen(["git", "show", "--numstat", "--pretty=format:", hash],
|
||||
stdout=subprocess.PIPE, universal_newlines=True)
|
||||
for line in p2.stdout:
|
||||
added, deleted, filename = re.split(r"\s+", line.strip(), 2)
|
||||
added, deleted, filename = re.split(r"\s+", line.strip(), maxsplit=2)
|
||||
if re.search(codefiles, filename) and added != "-":
|
||||
n += int(added)
|
||||
p2.wait()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue