Skip to content

Commit 4d06691

Browse files
committed
Sync with 1.7.8.5
2 parents 09ccbd3 + c524ceb commit 4d06691

File tree

6 files changed

+39
-6
lines changed

6 files changed

+39
-6
lines changed

Documentation/RelNotes/1.7.8.5.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Git v1.7.8.5 Release Notes
2+
==========================
3+
4+
Fixes since v1.7.8.4
5+
--------------------
6+
7+
* Dependency on our thread-utils.h header file was missing for
8+
objects that depend on it in the Makefile.
9+
10+
* "git am" when fed an empty file did not correctly finish reading it
11+
when it attempts to guess the input format.
12+
13+
* "git grep -P" (when PCRE is enabled in the build) did not match the
14+
beginning and the end of the line correctly with ^ and $.
15+
16+
* "git rebase -m" tried to run "git notes copy" needlessly when
17+
nothing was rewritten.
18+
19+
Also contains minor fixes and documentation updates.

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ LIB_H += streaming.h
615615
LIB_H += string-list.h
616616
LIB_H += submodule.h
617617
LIB_H += tag.h
618+
LIB_H += thread-utils.h
618619
LIB_H += transport.h
619620
LIB_H += tree.h
620621
LIB_H += tree-walk.h

git-am.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ check_patch_format () {
201201
l1=
202202
while test -z "$l1"
203203
do
204-
read l1
204+
read l1 || break
205205
done
206206
read l2
207207
read l3

git-rebase--merge.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ call_merge () {
9090

9191
finish_rb_merge () {
9292
move_to_original_branch
93-
git notes copy --for-rewrite=rebase < "$state_dir"/rewritten
94-
if test -x "$GIT_DIR"/hooks/post-rewrite &&
95-
test -s "$state_dir"/rewritten; then
96-
"$GIT_DIR"/hooks/post-rewrite rebase < "$state_dir"/rewritten
93+
if test -s "$state_dir"/rewritten
94+
then
95+
git notes copy --for-rewrite=rebase <"$state_dir"/rewritten
96+
if test -x "$GIT_DIR"/hooks/post-rewrite
97+
then
98+
"$GIT_DIR"/hooks/post-rewrite rebase <"$state_dir"/rewritten
99+
fi
97100
fi
98101
rm -r "$state_dir"
99102
say All done.

grep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static void compile_pcre_regexp(struct grep_pat *p, const struct grep_opt *opt)
7979
{
8080
const char *error;
8181
int erroffset;
82-
int options = 0;
82+
int options = PCRE_MULTILINE;
8383

8484
if (opt->ignore_case)
8585
options |= PCRE_CASELESS;

t/t4150-am.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,4 +495,14 @@ test_expect_success 'am -q is quiet' '
495495
! test -s output.out
496496
'
497497

498+
test_expect_success 'am empty-file does not infloop' '
499+
rm -fr .git/rebase-apply &&
500+
git reset --hard &&
501+
touch empty-file &&
502+
test_tick &&
503+
{ git am empty-file > actual 2>&1 && false || :; } &&
504+
echo Patch format detection failed. >expected &&
505+
test_cmp expected actual
506+
'
507+
498508
test_done

0 commit comments

Comments
 (0)