[Libreoffice-commits] dev-tools.git: scripts/annotate.pl

Stephan Bergmann sbergman at redhat.com
Thu Aug 15 00:00:29 PDT 2013


 scripts/annotate.pl |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6f4d92a1a4e3076f203b700f1c3a43153bde4154
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Aug 15 08:59:56 2013 +0200

    Make error output of annotate.pl w/o args more friendly

diff --git a/scripts/annotate.pl b/scripts/annotate.pl
index 1e6b8c1..70e0016 100755
--- a/scripts/annotate.pl
+++ b/scripts/annotate.pl
@@ -224,13 +224,13 @@ if (!defined $git_dir) {
 }
 
 if (!$list && !$stats && !$fetch) {
-
-    print "$note_text' '$note_hash\n";
     if (!defined $note_text || !defined $note_hash) {
 	usage();
-	die "need some note text";
+	exit 1;
     }
 
+    print "$note_text' '$note_hash\n";
+
     validate_check_note($note_text);
     validate_git_hash($note_hash) ||
 	    die "Hash on master '$note_hash' doesn't look like a git hash\n";


More information about the Libreoffice-commits mailing list