Merge branch 'master' into next

By Clemens Buchacher (1) and Junio C Hamano (1)
* master:
  RelNotes: the first batch of topics graduated to 'master'
  merge overwrites unstaged changes in renamed file
This commit is contained in:
Junio C Hamano
2012-04-15 22:59:47 -07:00
2 changed files with 28 additions and 0 deletions

View File

@@ -17,6 +17,9 @@ Performance
Internal Implementation (please report possible regressions)
* More lower-level commands learned to use the streaming API to read
from the object store without keeping everything in core.
Also contains minor documentation updates and code clean-ups.
@@ -27,3 +30,19 @@ Fixes since v1.7.10
Unless otherwise noted, all the fixes since v1.7.10 in the maintenance
releases are contained in this release (see release notes to them for
details).
* "git commit --author=$name" did not tell the name that was being
recorded in the resulting commit to hooks, even though it does do
so when the end user overrode the authorship via the
"GIT_AUTHOR_NAME" environment variable.
(merge 7dfe8ad jc/commit-hook-authorship later to maint).
* The regexp configured with diff.wordregex was incorrectly reused
across files.
(merge 6440d34 tr/maint-word-diff-regex-sticky later to maint).
* Running "notes merge --commit" failed to perform correctly when run
from any directory inside $GIT_DIR/. When "notes merge" stops with
conflicts, $GIT_DIR/NOTES_MERGE_WORKTREE is the place a user edits
to resolve it.
(merge dabba59 jh/notes-merge-in-git-dir-worktree later to maint).

View File

@@ -92,6 +92,15 @@ test_expect_success 'will not overwrite removed file with staged changes' '
test_cmp important c1.c
'
test_expect_failure 'will not overwrite unstaged changes in renamed file' '
git reset --hard c1 &&
git mv c1.c other.c &&
git commit -m rename &&
cp important other.c &&
git merge c1a &&
test_cmp important other.c
'
test_expect_success 'will not overwrite untracked subtree' '
git reset --hard c0 &&
rm -rf sub &&