1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Update credits for 5.11.0 (#15753)

This commit is contained in:
sfan5
2025-02-05 21:02:09 +01:00
committed by GitHub
parent 0fa56a9f7c
commit 1548b2ae9e
2 changed files with 13 additions and 15 deletions

View File

@@ -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()