]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
git-issue: add an info command to show status of a single issue
authorMartin Willi <martin@revosec.ch>
Fri, 10 May 2013 10:58:18 +0000 (12:58 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 10 May 2013 10:58:18 +0000 (12:58 +0200)
scripts/git-issue

index d43ae7d7df2c64188bf9c2729f1474d262240482..90ff48d35e92fd1436e8500360e37b415e2fbb61 100644 (file)
@@ -149,6 +149,16 @@ status ()
        echo "$issue ($issuetype, $revstatus): ${subj:7}"
 }
 
+########
+# show info about a single issue
+########
+info ()
+{
+       get_issueid $1
+       status $issueid $2
+       exit 0
+}
+
 ########
 # list all issues for a given revision
 ########
@@ -172,6 +182,9 @@ usage ()
             if no issue commit id is given, last issue is used
   list      list all known issues with status
             argument is revision to check issue status against, defaults to HEAD
+  info      show status of an issue given as first argument
+            if no issue commit id is given, last issue is used
+            second argument is revision to check issue status against
   show      show commits related to an issue
             if no issue commit id is given, last issue is used
   help      show this help"
@@ -196,6 +209,9 @@ case "$command" in
        list)
                list "$@"
                ;;
+       info)
+               info "$@"
+               ;;
        show)
                show "$@"
                ;;