Notes API: Allow multiple concurrent notes trees with new struct notes_tree
authorJohan Herland <johan@herland.net>
Sat, 13 Feb 2010 21:28:18 +0000 (22:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Feb 2010 03:36:12 +0000 (19:36 -0800)
commitcd30539214bb09881b84c796a50d30e409dee3fa
tree4fe2704aa3dd0e2ca29a4811ad58bdeb0ac32ed7
parent61a7cca0c6504aee7bae7837582230561bdb81d4
Notes API: Allow multiple concurrent notes trees with new struct notes_tree

The new struct notes_tree encapsulates access to a specific notes tree.
It is provided to allow callers to make use of several different notes trees
simultaneously.

A struct notes_tree * parameter is added to every function in the notes API.
In all cases, NULL can be passed, in which case the fallback "default" notes
tree (default_notes_tree) is used.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c
notes.h
pretty.c