зеркало из https://github.com/microsoft/git.git
Sync with 1.7.8.5
This commit is contained in:
Коммит
4d06691eec
|
@ -0,0 +1,19 @@
|
|||
Git v1.7.8.5 Release Notes
|
||||
==========================
|
||||
|
||||
Fixes since v1.7.8.4
|
||||
--------------------
|
||||
|
||||
* Dependency on our thread-utils.h header file was missing for
|
||||
objects that depend on it in the Makefile.
|
||||
|
||||
* "git am" when fed an empty file did not correctly finish reading it
|
||||
when it attempts to guess the input format.
|
||||
|
||||
* "git grep -P" (when PCRE is enabled in the build) did not match the
|
||||
beginning and the end of the line correctly with ^ and $.
|
||||
|
||||
* "git rebase -m" tried to run "git notes copy" needlessly when
|
||||
nothing was rewritten.
|
||||
|
||||
Also contains minor fixes and documentation updates.
|
1
Makefile
1
Makefile
|
@ -615,6 +615,7 @@ LIB_H += streaming.h
|
|||
LIB_H += string-list.h
|
||||
LIB_H += submodule.h
|
||||
LIB_H += tag.h
|
||||
LIB_H += thread-utils.h
|
||||
LIB_H += transport.h
|
||||
LIB_H += tree.h
|
||||
LIB_H += tree-walk.h
|
||||
|
|
|
@ -201,7 +201,7 @@ check_patch_format () {
|
|||
l1=
|
||||
while test -z "$l1"
|
||||
do
|
||||
read l1
|
||||
read l1 || break
|
||||
done
|
||||
read l2
|
||||
read l3
|
||||
|
|
|
@ -90,10 +90,13 @@ call_merge () {
|
|||
|
||||
finish_rb_merge () {
|
||||
move_to_original_branch
|
||||
git notes copy --for-rewrite=rebase < "$state_dir"/rewritten
|
||||
if test -x "$GIT_DIR"/hooks/post-rewrite &&
|
||||
test -s "$state_dir"/rewritten; then
|
||||
"$GIT_DIR"/hooks/post-rewrite rebase < "$state_dir"/rewritten
|
||||
if test -s "$state_dir"/rewritten
|
||||
then
|
||||
git notes copy --for-rewrite=rebase <"$state_dir"/rewritten
|
||||
if test -x "$GIT_DIR"/hooks/post-rewrite
|
||||
then
|
||||
"$GIT_DIR"/hooks/post-rewrite rebase <"$state_dir"/rewritten
|
||||
fi
|
||||
fi
|
||||
rm -r "$state_dir"
|
||||
say All done.
|
||||
|
|
2
grep.c
2
grep.c
|
@ -79,7 +79,7 @@ static void compile_pcre_regexp(struct grep_pat *p, const struct grep_opt *opt)
|
|||
{
|
||||
const char *error;
|
||||
int erroffset;
|
||||
int options = 0;
|
||||
int options = PCRE_MULTILINE;
|
||||
|
||||
if (opt->ignore_case)
|
||||
options |= PCRE_CASELESS;
|
||||
|
|
|
@ -495,4 +495,14 @@ test_expect_success 'am -q is quiet' '
|
|||
! test -s output.out
|
||||
'
|
||||
|
||||
test_expect_success 'am empty-file does not infloop' '
|
||||
rm -fr .git/rebase-apply &&
|
||||
git reset --hard &&
|
||||
touch empty-file &&
|
||||
test_tick &&
|
||||
{ git am empty-file > actual 2>&1 && false || :; } &&
|
||||
echo Patch format detection failed. >expected &&
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
test_done
|
||||
|
|
Загрузка…
Ссылка в новой задаче