From: Martin Taibr Date: Sat, 23 Sep 2017 00:17:21 +0000 (+0200) Subject: print last change X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2880b81f1db6ef7f984d94e922bfbcf03c9fadc0;p=xonotic%2Fxonotic-data.pk3dir.git print last change --- diff --git a/qcsrc/tools/uncrustify-unmodified.py b/qcsrc/tools/uncrustify-unmodified.py index a346d46cb..83b5d0987 100755 --- a/qcsrc/tools/uncrustify-unmodified.py +++ b/qcsrc/tools/uncrustify-unmodified.py @@ -34,6 +34,10 @@ def main(): for branch in branches: print(branch) + # getting this info is a bit slow + last_change = run(r'git show --pretty=format:"%ci" {}'.format(branch))[0] + print("\t last change:", last_change) + # If some complex branching and merging happens, there can be multiple merge bases. # The diff between each of them and the tip of the branch can contain changes that are not in master # and could cause conflicts.