Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2008 00:10:28 +0000 (17:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2008 00:10:28 +0000 (17:10 -0700)
* maint:
  Start preparing 1.5.6.4 release notes
  git fetch-pack: do not complain about "no common commits" in an empty repo
  rebase-i: keep old parents when preserving merges
  t7600-merge: Use test_expect_failure to test option parsing
  Fix buffer overflow in prepare_attr_stack
  Fix buffer overflow in git diff
  Fix buffer overflow in git-grep
  git-cvsserver: fix call to nonexistant cleanupWorkDir()
  Documentation/git-cherry-pick.txt et al.: Fix misleading -n description

Conflicts:
RelNotes

1  2 
Documentation/git-cherry-pick.txt
Documentation/git-revert.txt
diff.c
git-rebase--interactive.sh
revision.c
t/t7600-merge.sh

Simple merge
Simple merge
diff --cc diff.c
Simple merge
Simple merge
diff --cc revision.c
Simple merge
index d4cf6289a4c06ec9436235b7325379f26a388e06,daf45b7ffa5bc80a4129a7f4b48dce36711d4c87..9ab5bdacc41d026ea81c65b0d95a61a61521429a
@@@ -221,37 -221,13 +221,13 @@@ test_expect_success 'setup' 
  
  test_debug 'gitk --all'
  
--test_expect_success 'test option parsing' '
-       if git merge -$ c1
-       then
-               echo "[OOPS] -$ accepted"
-               false
-       fi &&
-       if git merge --no-such c1
-       then
-               echo "[OOPS] --no-such accepted"
-               false
-       fi &&
-       if git merge -s foobar c1
-       then
-               echo "[OOPS] -s foobar accepted"
-               false
-       fi &&
-       if git merge -s=foobar c1
-       then
-               echo "[OOPS] -s=foobar accepted"
-               false
-       fi &&
-       if git merge -m
-       then
-               echo "[OOPS] missing commit msg accepted"
-               false
-       fi &&
-       if git merge
-       then
-               echo "[OOPS] missing commit references accepted"
-               false
-       fi
++test_expect_failure 'test option parsing' '
+       test_must_fail git merge -$ c1 &&
+       test_must_fail git merge --no-such c1 &&
+       test_must_fail git merge -s foobar c1 &&
+       test_must_fail git merge -s=foobar c1 &&
+       test_must_fail git merge -m &&
+       test_must_fail git merge
  '
  
  test_expect_success 'merge c0 with c1' '