Merge branch 'jh/notes-merge-in-git-dir-worktree' into maint
commit058432635bba2e0b282725865437fbd57ddfa02e
authorJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2012 17:32:55 +0000 (26 10:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Apr 2012 17:32:55 +0000 (26 10:32 -0700)
treee4642c2e2ed39e4da46faddfd8c37164503726f9
parent50bf38ac23957c31ae6f24c537e89fc16f1f5e30
parentdabba590aa0e94a8deb6f0e827144697895bcfe8
Merge branch 'jh/notes-merge-in-git-dir-worktree' into 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.

By Johan Herland (3) and Junio C Hamano (1)
* jh/notes-merge-in-git-dir-worktree:
  notes-merge: Don't remove .git/NOTES_MERGE_WORKTREE; it may be the user's cwd
  notes-merge: use opendir/readdir instead of using read_directory()
  t3310: illustrate failure to "notes merge --commit" inside $GIT_DIR/
  remove_dir_recursively(): Add flag for skipping removal of toplevel dir