From f20b826d2de2481aa5d99b17a7f0f86817af1551 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Tue, 2 Jul 2013 07:45:56 +0200 Subject: [PATCH] Added long option (--weeks) to the -w option. This makes it clearer that it is supported in conjunction with git-config as well. --- gitinspector/gitinspector.py | 4 ++-- gitinspector/help.py | 2 +- gitinspector/translations/messages.pot | 2 +- gitinspector/translations/messages_sv.mo | Bin 10744 -> 10744 bytes gitinspector/translations/messages_sv.po | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gitinspector/gitinspector.py b/gitinspector/gitinspector.py index d0eb1f8..4809e1d 100755 --- a/gitinspector/gitinspector.py +++ b/gitinspector/gitinspector.py @@ -95,7 +95,7 @@ def main(): __opts__, __args__ = getopt.gnu_getopt(sys.argv[1:], "cf:F:hHlmrTwx:", ["checkout-missing", "exclude=", "file-types=", "format=", "hard", "help", "list-file-types", "metrics", "responsibilities", "since=", "grading", - "timeline", "until=", "version"]) + "timeline", "until=", "version", "weeks"]) for arg in __args__: __run__.repo = arg @@ -138,7 +138,7 @@ def main(): __run__.timeline = True elif o in("--until"): interval.set_until(a) - elif o in("-w"): + elif o in("-w", "--weeks"): __run__.useweeks = True elif o in("-x", "--exclude"): filtering.add(a) diff --git a/gitinspector/help.py b/gitinspector/help.py index ad4601a..6301aca 100644 --- a/gitinspector/help.py +++ b/gitinspector/help.py @@ -54,7 +54,7 @@ Mandatory arguments to long options are mandatory for short options too. -T, --timeline show commit timeline, including author names --until=DATE only show statistics for commits older than a specific date - -w show all statistical information in weeks + -w, --weeks show all statistical information in weeks instead of in months -x, --exclude=PATTERN an exclusion pattern describing file names that should be excluded from the statistics; can diff --git a/gitinspector/translations/messages.pot b/gitinspector/translations/messages.pot index 44e14d3..d74a9d4 100644 --- a/gitinspector/translations/messages.pot +++ b/gitinspector/translations/messages.pot @@ -127,7 +127,7 @@ msgid "" " -T, --timeline show commit timeline, including author names\n" " --until=DATE only show statistics for commits older than a\n" " specific date\n" -" -w show all statistical information in weeks\n" +" -w, --weeks show all statistical information in weeks\n" " instead of in months\n" " -x, --exclude=PATTERN an exclusion pattern describing file names that\n" " should be excluded from the statistics; can\n" diff --git a/gitinspector/translations/messages_sv.mo b/gitinspector/translations/messages_sv.mo index 9027567981d6e35bebe47c16d4b0eb443f8bea05..c70d4fe30cba75b1a522363540ef8928936d52d0 100644 GIT binary patch delta 50 xcmewn{3Ccn0~4dd9M diff --git a/gitinspector/translations/messages_sv.po b/gitinspector/translations/messages_sv.po index 2c5e43c..86dd954 100644 --- a/gitinspector/translations/messages_sv.po +++ b/gitinspector/translations/messages_sv.po @@ -154,7 +154,7 @@ msgid "" " --until=DATE only show statistics for commits older than " "a\n" " specific date\n" -" -w show all statistical information in weeks\n" +" -w, --weeks show all statistical information in weeks\n" " instead of in months\n" " -x, --exclude=PATTERN an exclusion pattern describing file names " "that\n" @@ -213,7 +213,7 @@ msgstr "" " --until=DATUM beräkna endast statistik för inlämningar " "äldre\n" " än ett angivet datum\n" -" -w visa statistisk information indelad i veckor\n" +" -w, --weeks visa statistisk information indelad i veckor\n" " istället för månader\n" " -x, --exclude=MÖNSTER ett uteslutningsmönster som anger de filnamn\n" " som ska uteslutas ur statistiken; kan "