Skip to content

Commit

Permalink
Sync with GIT 1.6.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed May 3, 2009
2 parents 503f464 + a48f5d7 commit 3536ae3
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
25 changes: 25 additions & 0 deletions Documentation/RelNotes-1.6.1.4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,40 @@ GIT v1.6.1.4 Release Notes
Fixes since v1.6.1.3
--------------------

* .gitignore learned to handle backslash as a quoting mechanism for
comment introduction character "#".
This fix was first merged to 1.6.2.1.

* "git fast-export" produced wrong output with some parents missing from
commits, when the history is clock-skewed.

* "git fast-import" sometimes failed to read back objects it just wrote
out and aborted, because it failed to flush stale cached data.

* "git-ls-tree" and "git-diff-tree" used a pathspec correctly when
deciding to descend into a subdirectory but they did not match the
individual paths correctly. This caused pathspecs "abc/d ab" to match
"abc/0" ("abc/d" made them decide to descend into the directory "abc/",
and then "ab" incorrectly matched "abc/0" when it shouldn't).
This fix was first merged to 1.6.2.3.

* import-zips script (in contrib) did not compute the common directory
prefix correctly.
This fix was first merged to 1.6.2.2.

* "git init" segfaulted when given an overlong template location via
the --template= option.
This fix was first merged to 1.6.2.4.

* "git repack" did not error out when necessary object was missing in the
repository.

* git-repack (invoked from git-gc) did not work as nicely as it should in
a repository that borrows objects from neighbours via alternates
mechanism especially when some packs are marked with the ".keep" flag
to prevent them from being repacked.
This fix was first merged to 1.6.2.3.

Also includes minor documentation fixes and updates.

--
Expand Down
21 changes: 21 additions & 0 deletions Documentation/RelNotes-1.6.2.5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
GIT v1.6.2.5 Release Notes
==========================

Fixes since v1.6.2.4
--------------------

* "git apply" mishandled if you fed a git generated patch that renames
file A to B and file B to A at the same time.

* "git diff -c -p" (and "diff --cc") did not expect to see submodule
differences and instead refused to work.

* "git grep -e '('" segfaulted, instead of diagnosing a mismatched
parentheses error.

* "git fetch" generated packs with offset-delta encoding when both ends of
the connection are capable of producing one; this cannot be read by
ancient git and the user should be able to disable this by setting
repack.usedeltabaseoffset configuration to false.


13 changes: 12 additions & 1 deletion builtin-fetch-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
static int transfer_unpack_limit = -1;
static int fetch_unpack_limit = -1;
static int unpack_limit = 100;
static int prefer_ofs_delta = 1;
static struct fetch_pack_args args = {
/* .uploadpack = */ "git-upload-pack",
};
Expand Down Expand Up @@ -200,7 +201,7 @@ static int find_common(int fd[2], unsigned char *result_sha1,
(args.use_thin_pack ? " thin-pack" : ""),
(args.no_progress ? " no-progress" : ""),
(args.include_tag ? " include-tag" : ""),
" ofs-delta");
(prefer_ofs_delta ? " ofs-delta" : ""));
else
packet_write(fd[1], "want %s\n", sha1_to_hex(remote));
fetching++;
Expand Down Expand Up @@ -596,6 +597,11 @@ static struct ref *do_fetch_pack(int fd[2],
fprintf(stderr, "Server supports side-band\n");
use_sideband = 1;
}
if (server_supports("ofs-delta")) {
if (args.verbose)
fprintf(stderr, "Server supports ofs-delta\n");
} else
prefer_ofs_delta = 0;
if (everything_local(&ref, nr_match, match)) {
packet_flush(fd[1]);
goto all_done;
Expand Down Expand Up @@ -648,6 +654,11 @@ static int fetch_pack_config(const char *var, const char *value, void *cb)
return 0;
}

if (strcmp(var, "repack.usedeltabaseoffset") == 0) {
prefer_ofs_delta = git_config_bool(var, value);
return 0;
}

return git_default_config(var, value, cb);
}

Expand Down

0 comments on commit 3536ae3

Please sign in to comment.