Skip to content

Commit e443bdf

Browse files
committed
Sync with v1.7.8.1
2 parents 3daff7c + 2ce0edc commit e443bdf

File tree

5 files changed

+35
-14
lines changed

5 files changed

+35
-14
lines changed

Documentation/RelNotes/1.7.8.1.txt

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
11
Git v1.7.8.1 Release Notes
22
==========================
33

4-
Fixes since v1.7.8.1
5-
--------------------
4+
Fixes since v1.7.8
5+
------------------
66

77
* In some codepaths (notably, checkout and merge), the ignore patterns
88
recorded in $GIT_DIR/info/exclude were not honored. They now are.
99

10-
* After fetching from a remote that has very long refname, the reporting
11-
output could have corrupted by overrunning a static buffer.
10+
* "git apply --check" did not error out when given an empty input
11+
without any patch.
12+
13+
* "git archive" mistakenly allowed remote clients to ask for commits
14+
that are not at the tip of any ref.
1215

1316
* "git checkout" and "git merge" treated in-tree .gitignore and exclude
1417
file in $GIT_DIR/info/ directory inconsistently when deciding which
1518
untracked files are ignored and expendable.
1619

20+
* LF-to-CRLF streaming filter used when checking out a large-ish blob
21+
fell into an infinite loop with a rare input.
22+
23+
* The function header pattern for files with "diff=cpp" attribute did
24+
not consider "type *funcname(type param1,..." as the beginning of a
25+
function.
26+
27+
* The error message from "git diff" and "git status" when they fail
28+
to inspect changes in submodules did not report which submodule they
29+
had trouble with.
30+
31+
* After fetching from a remote that has very long refname, the reporting
32+
output could have corrupted by overrunning a static buffer.
33+
34+
* "git pack-objects" avoids creating cyclic dependencies among deltas
35+
when seeing a broken packfile that records the same object in both
36+
the deflated form and as a delta.
37+
1738
Also contains minor fixes and documentation updates.

builtin/clone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ static struct option builtin_clone_options[] = {
8484
"directory from which templates will be used"),
8585
OPT_CALLBACK(0 , "reference", &option_reference, "repo",
8686
"reference repository", &opt_parse_reference),
87-
OPT_STRING('o', "origin", &option_origin, "branch",
88-
"use <branch> instead of 'origin' to track upstream"),
87+
OPT_STRING('o', "origin", &option_origin, "name",
88+
"use <name> instead of 'origin' to track upstream"),
8989
OPT_STRING('b', "branch", &option_branch, "branch",
9090
"checkout <branch> instead of the remote's HEAD"),
9191
OPT_STRING('u', "upload-pack", &option_upload_pack, "path",

builtin/commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static struct option builtin_commit_options[] = {
139139
OPT_STRING('C', "reuse-message", &use_message, "commit", "reuse message from specified commit"),
140140
OPT_STRING(0, "fixup", &fixup_message, "commit", "use autosquash formatted message to fixup specified commit"),
141141
OPT_STRING(0, "squash", &squash_message, "commit", "use autosquash formatted message to squash specified commit"),
142-
OPT_BOOLEAN(0, "reset-author", &renew_authorship, "the commit is authored by me now (used with -C-c/--amend)"),
142+
OPT_BOOLEAN(0, "reset-author", &renew_authorship, "the commit is authored by me now (used with -C/-c/--amend)"),
143143
OPT_BOOLEAN('s', "signoff", &signoff, "add Signed-off-by:"),
144144
OPT_FILENAME('t', "template", &template_file, "use specified template file"),
145145
OPT_BOOL('e', "edit", &edit_flag, "force edit of commit"),

builtin/log.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ static int decorate_callback(const struct option *opt, const char *arg, int unse
7373

7474
static void cmd_log_init_defaults(struct rev_info *rev)
7575
{
76-
rev->abbrev = DEFAULT_ABBREV;
77-
rev->commit_format = CMIT_FMT_DEFAULT;
7876
if (fmt_pretty)
7977
get_commit_format(fmt_pretty, rev);
8078
rev->verbose_header = 1;

convert.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ int is_null_stream_filter(struct stream_filter *filter)
879879

880880
struct lf_to_crlf_filter {
881881
struct stream_filter filter;
882-
int want_lf;
882+
unsigned want_lf:1;
883883
};
884884

885885
static int lf_to_crlf_filter_fn(struct stream_filter *filter,
@@ -895,8 +895,11 @@ static int lf_to_crlf_filter_fn(struct stream_filter *filter,
895895
lf_to_crlf->want_lf = 0;
896896
}
897897

898-
if (!input)
899-
return 0; /* We've already dealt with the state */
898+
/* We are told to drain */
899+
if (!input) {
900+
*osize_p -= o;
901+
return 0;
902+
}
900903

901904
count = *isize_p;
902905
if (count) {
@@ -931,10 +934,9 @@ static struct stream_filter_vtbl lf_to_crlf_vtbl = {
931934

932935
static struct stream_filter *lf_to_crlf_filter(void)
933936
{
934-
struct lf_to_crlf_filter *lf_to_crlf = xmalloc(sizeof(*lf_to_crlf));
937+
struct lf_to_crlf_filter *lf_to_crlf = xcalloc(1, sizeof(*lf_to_crlf));
935938

936939
lf_to_crlf->filter.vtbl = &lf_to_crlf_vtbl;
937-
lf_to_crlf->want_lf = 0;
938940
return (struct stream_filter *)lf_to_crlf;
939941
}
940942

0 commit comments

Comments
 (0)