From d4cdebab5840e21d95a7951d35dbc6d6490c4f89 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Wed, 20 Jan 1999 21:57:51 +0000 Subject: [PATCH] fix typo support -F --- commit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commit b/commit index 9f8ad687b..40a1dd4d3 100755 --- a/commit +++ b/commit @@ -19,11 +19,14 @@ fi if test $# -gt 1 && test x"$1" = x"-m"; then echo "$2" > "$log_file" shift; shift +elif test $# -gt 1 && test x"$1" = x"-F"; then + cat < "$2" > "$log_file" || exit 1 + shift; shift fi echo "Checking whether repository is up to date..." >&2 commit=`cvs $cvsopt stat ${1+"$@"} 2>/dev/null | grep Status \ - | egrep -v '(Up-to-date|Cvsoptly )'` + | egrep -v '(Up-to-date|Locally )'` if test -n "$commit"; then echo "$commit" -- 2.47.2