author | Junio C Hamano <gitster@pobox.com> | |
Tue, 15 Mar 2011 20:32:09 +0000 (13:32 -0700) | ||
committer | Junio 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
docs: point git.txt author credits to git-scm.com
doc: add missing git footers
doc: drop author/documentation sections from most pages
index 671f04a281b72960b35168fbbb840dd67fffb77e..620d50e71f1a04f587079180ff2d987521d38786 100644 (file)
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)
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),
diff --git a/object.h b/object.h
index 4d1d61546f0441bd198cda3ad153b35a91444b72..b6618d92bf04d549350d83b6237770c48734686f 100644 (file)
--- a/object.h
+++ b/object.h
struct object_list *next;
};
-struct object_refs {
- unsigned count;
- struct object *ref[FLEX_ARRAY]; /* more */
-};
-
struct object_array {
unsigned int nr;
unsigned int alloc;
diff --git a/remote-curl.c b/remote-curl.c
index d0fb0a044a85ec6169c4623c7c2ab2143dbb5784..775d6143037aa4573c0202715fe1b1a0f99e2799 100644 (file)
--- a/remote-curl.c
+++ b/remote-curl.c
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);
diff --git a/t/t9800-git-p4.sh b/t/t9800-git-p4.sh
index 1969e6b9d365820044bab1d646dd5050c3ff5171..abe7c64ba9ca8442f4c50d15fffeefd6bba02b5f 100755 (executable)
--- a/t/t9800-git-p4.sh
+++ b/t/t9800-git-p4.sh
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"
'