Browse Source

Sync with 1.7.8.5

maint
Junio C Hamano 13 years ago
parent
commit
4d06691eec
  1. 19
      Documentation/RelNotes/1.7.8.5.txt
  2. 1
      Makefile
  3. 2
      git-am.sh
  4. 11
      git-rebase--merge.sh
  5. 2
      grep.c
  6. 10
      t/t4150-am.sh

19
Documentation/RelNotes/1.7.8.5.txt

@ -0,0 +1,19 @@ @@ -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

@ -615,6 +615,7 @@ LIB_H += streaming.h @@ -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

2
git-am.sh

@ -201,7 +201,7 @@ check_patch_format () { @@ -201,7 +201,7 @@ check_patch_format () {
l1=
while test -z "$l1"
do
read l1
read l1 || break
done
read l2
read l3

11
git-rebase--merge.sh

@ -90,10 +90,13 @@ call_merge () { @@ -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

@ -79,7 +79,7 @@ static void compile_pcre_regexp(struct grep_pat *p, const struct grep_opt *opt) @@ -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;

10
t/t4150-am.sh

@ -495,4 +495,14 @@ test_expect_success 'am -q is quiet' ' @@ -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

Loading…
Cancel
Save