From 8e879fb51ab718835909a58edbb4d9b6eef7224e Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 6 Oct 2017 14:15:54 +0000 Subject: [PATCH] pgit.sh commit: Add support for --cvs Signed-off-by: Jan Lindemann --- scripts/pgit.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/pgit.sh b/scripts/pgit.sh index c876a694..94b4a675 100644 --- a/scripts/pgit.sh +++ b/scripts/pgit.sh @@ -66,7 +66,12 @@ run() commit() {( - local d + local d do_cvs + + if [ "$1" = --cvs ]; then + do_cvs=true + shift + fi config cd $pdir @@ -79,6 +84,10 @@ commit() fi run_git -C $d commit "$@" done + + if [ "$do_cvs" = true -a -d CVS ]; then + cvs commit "$@" + fi )} clone()