Skip to content

Commit

Permalink
Sync with 1.7.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed Feb 27, 2012
2 parents 09ccbd3 + c524ceb commit 4d06691
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 6 deletions.
19 changes: 19 additions & 0 deletions Documentation/RelNotes/1.7.8.5.txt
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion git-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ check_patch_format () {
l1=
while test -z "$l1"
do
read l1
read l1 || break
done
read l2
read l3
Expand Down
11 changes: 7 additions & 4 deletions git-rebase--merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 10 additions & 0 deletions t/t4150-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4d06691

Please sign in to comment.