Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Sun, 20 May 2012 22:45:35 +0000 (15:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 May 2012 22:45:35 +0000 (15:45 -0700)
By Jens Lehmann (1) and Johannes Sixt (1)
* maint:
Consistently use "superproject" instead of "supermodule"
t3404: begin "exchange commits with -p" test with correct preconditions

1  2 
t/t3404-rebase-interactive.sh
unpack-trees.c
index 4983bd77753307a7f93963b02534f36ae6fc71bb,eab8501e11b31a65abc405885be425359220fdaa..025c1c610efee9562343b34a9c815f34f51ed9ac
@@@ -247,6 -247,7 +247,7 @@@ test_expect_success '-p handles "no cha
  '
  
  test_expect_failure 'exchange two commits with -p' '
+       git checkout H &&
        FAKE_LINES="2 1" git rebase -i -p HEAD~2 &&
        test H = $(git cat-file commit HEAD^ | sed -ne \$p) &&
        test G = $(git cat-file commit HEAD | sed -ne \$p)
@@@ -323,7 -324,7 +324,7 @@@ test_expect_success 'verbose flag is he
        echo resolved > file1 &&
        git add file1 &&
        git rebase --continue > output &&
 -      grep "^ file1 |    2 +-$" output
 +      grep "^ file1 | 2 +-$" output
  '
  
  test_expect_success 'multi-squash only fires up editor once' '
diff --combined unpack-trees.c
index bcee99c52e3a9ee8d67f70c577e57bbde8a8b610,f0ac24b9f5306d6b805cc5a578cc7110f2cc09f3..ad40109432971b8b26f107a84b02aeb405e8daf9
@@@ -1027,7 -1027,6 +1027,7 @@@ int unpack_trees(unsigned len, struct t
        o->result.initialized = 1;
        o->result.timestamp.sec = o->src_index->timestamp.sec;
        o->result.timestamp.nsec = o->src_index->timestamp.nsec;
 +      o->result.version = o->src_index->version;
        o->merge_size = len;
        mark_all_ce_unused(o->src_index);
  
@@@ -1210,7 -1209,7 +1210,7 @@@ static int verify_uptodate_1(struct cac
                        return 0;
                /*
                 * NEEDSWORK: the current default policy is to allow
-                * submodule to be out of sync wrt the supermodule
+                * submodule to be out of sync wrt the superproject
                 * index.  This needs to be tightened later for
                 * submodules that are marked to be automatically
                 * checked out.
@@@ -1793,7 -1792,7 +1793,7 @@@ int bind_merge(struct cache_entry **src
        struct cache_entry *a = src[1];
  
        if (o->merge_size != 1)
 -              return error("Cannot do a bind merge of %d trees\n",
 +              return error("Cannot do a bind merge of %d trees",
                             o->merge_size);
        if (a && old)
                return o->gently ? -1 :