зеркало из https://github.com/microsoft/git.git
Sync with 1.6.3.3
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Коммит
e16a4779b3
|
@ -1,2 +1,2 @@
|
|||
* whitespace=!indent,trail,space
|
||||
*.[ch] whitespace
|
||||
*.[ch] whitespace=indent,trail,space
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
GIT v1.6.3.3 Release Notes
|
||||
==========================
|
||||
|
||||
Fixes since v1.6.3.2
|
||||
--------------------
|
||||
|
||||
* "git archive" running on Cygwin can get stuck in an infinite loop.
|
||||
|
||||
* "git daemon" did not correctly parse the initial line that carries
|
||||
virtual host request information.
|
||||
|
||||
* "git diff --textconv" leaked memory badly when the textconv filter
|
||||
errored out.
|
||||
|
||||
* The built-in regular expressions to pick function names to put on
|
||||
hunk header lines for java and objc were very inefficiently written.
|
||||
|
||||
* in certain error situations git-fetch (and git-clone) on Windows didn't
|
||||
detect connection abort and ended up waiting indefinitely.
|
||||
|
||||
* import-tars script (in contrib) did not import symbolic links correctly.
|
||||
|
||||
* http.c used CURLOPT_SSLKEY even on libcURL version 7.9.2, even though
|
||||
it was only available starting 7.9.3.
|
||||
|
||||
* low-level filelevel merge driver used return value from strdup()
|
||||
without checking if we ran out of memory.
|
||||
|
||||
* "git rebase -i" left stray closing parenthesis in its reflog message.
|
||||
|
||||
* "git remote show" did not show all the URLs associated with the named
|
||||
remote, even though "git remote -v" did. Made them consistent by
|
||||
making the former show all URLs.
|
||||
|
||||
* "whitespace" attribute that is set was meant to detect all errors known
|
||||
to git, but it told git to ignore trailing carriage-returns.
|
||||
|
||||
Includes other documentation fixes.
|
|
@ -43,9 +43,10 @@ unreleased) version of git, that is available from 'master'
|
|||
branch of the `git.git` repository.
|
||||
Documentation for older releases are available here:
|
||||
|
||||
* link:v1.6.3.2/git.html[documentation for release 1.6.3.2]
|
||||
* link:v1.6.3.3/git.html[documentation for release 1.6.3.3]
|
||||
|
||||
* release notes for
|
||||
link:RelNotes-1.6.3.3.txt[1.6.3.3],
|
||||
link:RelNotes-1.6.3.2.txt[1.6.3.2],
|
||||
link:RelNotes-1.6.3.1.txt[1.6.3.1],
|
||||
link:RelNotes-1.6.3.txt[1.6.3].
|
||||
|
|
|
@ -17,11 +17,11 @@ test_expect_success setup '
|
|||
|
||||
'
|
||||
|
||||
test_expect_code 1 'cherry-pick an empty commit' '
|
||||
|
||||
git checkout master &&
|
||||
git cherry-pick empty-branch
|
||||
|
||||
test_expect_success 'cherry-pick an empty commit' '
|
||||
git checkout master && {
|
||||
git cherry-pick empty-branch
|
||||
test "$?" = 1
|
||||
}
|
||||
'
|
||||
|
||||
test_expect_success 'index lockfile was removed' '
|
||||
|
|
12
ws.c
12
ws.c
|
@ -10,11 +10,12 @@
|
|||
static struct whitespace_rule {
|
||||
const char *rule_name;
|
||||
unsigned rule_bits;
|
||||
unsigned loosens_error;
|
||||
} whitespace_rule_names[] = {
|
||||
{ "trailing-space", WS_TRAILING_SPACE },
|
||||
{ "space-before-tab", WS_SPACE_BEFORE_TAB },
|
||||
{ "indent-with-non-tab", WS_INDENT_WITH_NON_TAB },
|
||||
{ "cr-at-eol", WS_CR_AT_EOL },
|
||||
{ "trailing-space", WS_TRAILING_SPACE, 0 },
|
||||
{ "space-before-tab", WS_SPACE_BEFORE_TAB, 0 },
|
||||
{ "indent-with-non-tab", WS_INDENT_WITH_NON_TAB, 0 },
|
||||
{ "cr-at-eol", WS_CR_AT_EOL, 1 },
|
||||
};
|
||||
|
||||
unsigned parse_whitespace_rule(const char *string)
|
||||
|
@ -79,7 +80,8 @@ unsigned whitespace_rule(const char *pathname)
|
|||
unsigned all_rule = 0;
|
||||
int i;
|
||||
for (i = 0; i < ARRAY_SIZE(whitespace_rule_names); i++)
|
||||
all_rule |= whitespace_rule_names[i].rule_bits;
|
||||
if (!whitespace_rule_names[i].loosens_error)
|
||||
all_rule |= whitespace_rule_names[i].rule_bits;
|
||||
return all_rule;
|
||||
} else if (ATTR_FALSE(value)) {
|
||||
/* false (-whitespace) */
|
||||
|
|
Загрузка…
Ссылка в новой задаче