[meld] Update maint's NEWS population to exclude po/ and help/lang/ commits



commit f5890a49e71275d44764057b03045e699c9fb008
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Wed Mar 28 08:12:33 2018 +1000

    Update maint's NEWS population to exclude po/ and help/lang/ commits

 maint | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/maint b/maint
index 7d7d586d..d21d46e8 100755
--- a/maint
+++ b/maint
@@ -159,8 +159,13 @@ def get_translator_langs(folders=[PO_DIR, HELP_DIR]):
 def get_non_translation_commits():
     last_release = get_last_release_tag()
     revspec = "%s..HEAD" % last_release
-    # FIXME: Use the Git 1.9 spec to negate logging translation commits
-    cmd = ['git', 'log', '--pretty=format:%s (%an)', revspec]
+    cmd = [
+        'git', 'log', '--pretty=format:%s (%an)', revspec,
+        # Exclude commits that only cover the po/ or help/ folders,
+        # except commits in help/C. Basically, we want to separate
+        # translation-only commits from everything else.
+        '--', '.', ":!po/", ':(glob,exclude)help/[!C]*/**',
+    ]
     commits = subprocess.check_output(cmd).strip().splitlines()
     return [c.decode('utf-8') for c in commits]
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]