From 349d6ae12f41b0b37264d6017377abd2ea29a5b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 12 Jul 2010 11:45:15 +0200 Subject: [PATCH] Support passing --force to repoman. --- sunrise-commit | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sunrise-commit b/sunrise-commit index 6cea8f4..66b07d3 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -113,6 +113,7 @@ Options: -c, --changelog backwards compat (ignored), -C, --nocolor disable colorful output, + -f, --force force repoman to proceed with the commit, -t, --trivial trivial changes (do not add a ChangeLog entry), -v, --verbose enable verbose output. _EOH_ @@ -120,7 +121,7 @@ _EOH_ # Guess what! main() { - local commitmsg monochrome trivial + local commitmsg force monochrome trivial unset SC_VERBOSE while [ ${#} -gt 0 ]; do @@ -140,6 +141,9 @@ main() { -C|--nocolor) monochrome=1 ;; + -f|--force) + force=1 + ;; -t|--trivial) trivial=1 ;; @@ -254,7 +258,7 @@ main() { fi sayv "Now, let's let repoman do its job..." - exec repoman commit ${old_repoman--a} -m "${SC_CP}: ${commitmsg}" + exec repoman commit ${old_repoman--a} ${force+-f} -m "${SC_CP}: ${commitmsg}" ;; esac }