Skip to content

Commit 3536ae3

Browse files
committed
Sync with GIT 1.6.2.5
2 parents 503f464 + a48f5d7 commit 3536ae3

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

Documentation/RelNotes-1.6.1.4.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,40 @@ GIT v1.6.1.4 Release Notes
44
Fixes since v1.6.1.3
55
--------------------
66

7+
* .gitignore learned to handle backslash as a quoting mechanism for
8+
comment introduction character "#".
9+
This fix was first merged to 1.6.2.1.
10+
711
* "git fast-export" produced wrong output with some parents missing from
812
commits, when the history is clock-skewed.
913

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

17+
* "git-ls-tree" and "git-diff-tree" used a pathspec correctly when
18+
deciding to descend into a subdirectory but they did not match the
19+
individual paths correctly. This caused pathspecs "abc/d ab" to match
20+
"abc/0" ("abc/d" made them decide to descend into the directory "abc/",
21+
and then "ab" incorrectly matched "abc/0" when it shouldn't).
22+
This fix was first merged to 1.6.2.3.
23+
24+
* import-zips script (in contrib) did not compute the common directory
25+
prefix correctly.
26+
This fix was first merged to 1.6.2.2.
27+
28+
* "git init" segfaulted when given an overlong template location via
29+
the --template= option.
30+
This fix was first merged to 1.6.2.4.
31+
1332
* "git repack" did not error out when necessary object was missing in the
1433
repository.
1534

35+
* git-repack (invoked from git-gc) did not work as nicely as it should in
36+
a repository that borrows objects from neighbours via alternates
37+
mechanism especially when some packs are marked with the ".keep" flag
38+
to prevent them from being repacked.
39+
This fix was first merged to 1.6.2.3.
40+
1641
Also includes minor documentation fixes and updates.
1742

1843
--

Documentation/RelNotes-1.6.2.5.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
GIT v1.6.2.5 Release Notes
2+
==========================
3+
4+
Fixes since v1.6.2.4
5+
--------------------
6+
7+
* "git apply" mishandled if you fed a git generated patch that renames
8+
file A to B and file B to A at the same time.
9+
10+
* "git diff -c -p" (and "diff --cc") did not expect to see submodule
11+
differences and instead refused to work.
12+
13+
* "git grep -e '('" segfaulted, instead of diagnosing a mismatched
14+
parentheses error.
15+
16+
* "git fetch" generated packs with offset-delta encoding when both ends of
17+
the connection are capable of producing one; this cannot be read by
18+
ancient git and the user should be able to disable this by setting
19+
repack.usedeltabaseoffset configuration to false.
20+
21+

builtin-fetch-pack.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
static int transfer_unpack_limit = -1;
1414
static int fetch_unpack_limit = -1;
1515
static int unpack_limit = 100;
16+
static int prefer_ofs_delta = 1;
1617
static struct fetch_pack_args args = {
1718
/* .uploadpack = */ "git-upload-pack",
1819
};
@@ -200,7 +201,7 @@ static int find_common(int fd[2], unsigned char *result_sha1,
200201
(args.use_thin_pack ? " thin-pack" : ""),
201202
(args.no_progress ? " no-progress" : ""),
202203
(args.include_tag ? " include-tag" : ""),
203-
" ofs-delta");
204+
(prefer_ofs_delta ? " ofs-delta" : ""));
204205
else
205206
packet_write(fd[1], "want %s\n", sha1_to_hex(remote));
206207
fetching++;
@@ -596,6 +597,11 @@ static struct ref *do_fetch_pack(int fd[2],
596597
fprintf(stderr, "Server supports side-band\n");
597598
use_sideband = 1;
598599
}
600+
if (server_supports("ofs-delta")) {
601+
if (args.verbose)
602+
fprintf(stderr, "Server supports ofs-delta\n");
603+
} else
604+
prefer_ofs_delta = 0;
599605
if (everything_local(&ref, nr_match, match)) {
600606
packet_flush(fd[1]);
601607
goto all_done;
@@ -648,6 +654,11 @@ static int fetch_pack_config(const char *var, const char *value, void *cb)
648654
return 0;
649655
}
650656

657+
if (strcmp(var, "repack.usedeltabaseoffset") == 0) {
658+
prefer_ofs_delta = git_config_bool(var, value);
659+
return 0;
660+
}
661+
651662
return git_default_config(var, value, cb);
652663
}
653664

0 commit comments

Comments
 (0)