Code

Merge branch 'jk/doc-credits' of git://github.com/peff/git
authorJunio C Hamano <gitster@pobox.com>
Tue, 15 Mar 2011 20:32:09 +0000 (13:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Mar 2011 20:32:09 +0000 (13:32 -0700)
* 'jk/doc-credits' of git://github.com/peff/git:
  docs: point git.txt author credits to git-scm.com
  doc: add missing git footers
  doc: drop author/documentation sections from most pages

Documentation/git-rebase.txt
contrib/fast-import/git-p4
object.h
remote-curl.c
t/t9800-git-p4.sh

index 671f04a281b72960b35168fbbb840dd67fffb77e..620d50e71f1a04f587079180ff2d987521d38786 100644 (file)
@@ -66,8 +66,9 @@ would be:
     D---E---F---G master
 ------------
 
-The latter form is just a short-hand of `git checkout topic`
-followed by `git rebase master`.
+*NOTE:* The latter form is just a short-hand of `git checkout topic`
+followed by `git rebase master`. When rebase exits `topic` will
+remain the checked-out branch.
 
 If the upstream branch already contains a change you have made (e.g.,
 because you mailed a patch which was applied upstream), then that commit
index 2df3bb21c4aff3863844a0f679d257efa48e68b5..7cb479c5e1b21e4b0de936ced57981e0bf804b0c 100755 (executable)
@@ -1763,7 +1763,7 @@ class P4Sync(Command):
 
                 changes.sort()
             else:
-                if not self.p4BranchesInGit:
+                if not isinstance(self, P4Clone) and not self.p4BranchesInGit:
                     die("No remote p4 branches.  Perhaps you never did \"git p4 clone\" in here.");
                 if self.verbose:
                     print "Getting p4 changes for %s...%s" % (', '.join(self.depotPaths),
index 4d1d61546f0441bd198cda3ad153b35a91444b72..b6618d92bf04d549350d83b6237770c48734686f 100644 (file)
--- a/object.h
+++ b/object.h
@@ -6,11 +6,6 @@ struct object_list {
        struct object_list *next;
 };
 
-struct object_refs {
-       unsigned count;
-       struct object *ref[FLEX_ARRAY]; /* more */
-};
-
 struct object_array {
        unsigned int nr;
        unsigned int alloc;
index d0fb0a044a85ec6169c4623c7c2ab2143dbb5784..775d6143037aa4573c0202715fe1b1a0f99e2799 100644 (file)
@@ -446,12 +446,12 @@ static int post_rpc(struct rpc_state *rpc)
 
        headers = curl_slist_append(headers, rpc->hdr_content_type);
        headers = curl_slist_append(headers, rpc->hdr_accept);
+       headers = curl_slist_append(headers, "Expect:");
 
        if (large_request) {
                /* The request body is large and the size cannot be predicted.
                 * We must use chunked encoding to send it.
                 */
-               headers = curl_slist_append(headers, "Expect:");
                headers = curl_slist_append(headers, "Transfer-Encoding: chunked");
                rpc->initial_buffer = 1;
                curl_easy_setopt(slot->curl, CURLOPT_READFUNCTION, rpc_out);
index 1969e6b9d365820044bab1d646dd5050c3ff5171..abe7c64ba9ca8442f4c50d15fffeefd6bba02b5f 100755 (executable)
@@ -37,11 +37,27 @@ test_expect_success 'add p4 files' '
        echo file1 >file1 &&
        p4 add file1 &&
        p4 submit -d "file1" &&
+       echo file2 >file2 &&
+       p4 add file2 &&
+       p4 submit -d "file2" &&
        cd "$TRASH_DIRECTORY"
 '
 
 test_expect_success 'basic git-p4 clone' '
        "$GITP4" clone --dest="$git" //depot &&
+       cd "$git" &&
+       git log --oneline >lines &&
+       test_line_count = 1 lines &&
+       cd .. &&
+       rm -rf "$git" && mkdir "$git"
+'
+
+test_expect_success 'git-p4 clone @all' '
+       "$GITP4" clone --dest="$git" //depot@all &&
+       cd "$git" &&
+       git log --oneline >lines &&
+       test_line_count = 2 lines &&
+       cd .. &&
        rm -rf "$git" && mkdir "$git"
 '