]> thyrsus.com Git - src.git/commitdiff
Test for commit -f.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 7 Nov 2014 21:24:37 +0000 (16:24 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 7 Nov 2014 21:24:37 +0000 (16:24 -0500)
srctest

diff --git a/srctest b/srctest
index 725418187abb2ae052623d1e83b0537970c717df..a7384f11ea0d6a1b2e44709635af6845ca5c0b32 100755 (executable)
--- a/srctest
+++ b/srctest
@@ -70,6 +70,15 @@ src $TESTOPTS log testfile1 >testfile3
 diff testfile2 testfile3
 check "log test"
 
+cat >testfile1 <<EOF
+Now is the time
+for all good men
+to come to the aid of foo
+EOF
+
+echo "Third comment" >testfile4
+src $TESTOPTS commit -f testfile4 testfile1 >/dev/null
+check "commit with -f"
 
 # to do: checkout, tag, fast-export, out-of-bounds revisions.