The series makes the notes code use a repository it is given rather than the global the_repository. Patches in the thread include one that has create_notes_commit() and commit_notes() use their repository argument. Another passes the tree's repository to all combine_notes callbacks, so combine_notes_concatenate() and combine_notes_cat_sort_uniq() read and write blobs in the right repository. A third makes string_list_add_refs_by_glob() and string_list_add_refs_from_colon_sep() take a repository as their first argument, with callers passing the_repository for now.

Junio C Hamano's review was mostly positive. On the first patch he said the callers all seem converted. He also said that, apart from a NULL check needed in copy_note() on patch 3, the series looked in good shape. He noted that notes-cache.c still uses the_repository in several functions.

The NULL handling was his main technical concern. He observed that remove_note() and prune_notes() fall back to default_notes_tree when passed NULL and assert t->initialized, so converting them to t->repo is safe. Other functions, such as note_tree_find() via the search code, may be called with a NULL tree, and dereferencing t->repo there would be wrong. For copy_note() he suggested the same fallback to the default notes tree plus an initialized assertion.

He accepted the argument ordering in notes_tree_init() and notes_tree_load(). He also pointed out that the comment above the declaration does not describe 'flags' and that the new 'r' parameter should be covered.

He also objected to the numbering. A new iteration called itself "v2" although a two-patch "v2" from November 3rd was already in the thread, and the earlier six-patch series had not labelled itself "v3". He said this breaks automation such as b4 am, and that the next posting should be called "v5".

The NULL-check and version-label fixes are the open items.