From: Johan Herland Date: Thu, 11 Mar 2010 10:58:57 GMT Subject: Re: [PATCH v6 12/13] notes: track whether notes_trees were changed at all Message-ID: <201003111158.57543.johan@herland.net> In-Reply-To: On Wednesday 10 March 2010, Thomas Rast wrote: > Currently, the notes copying is a bit wasteful since it always creates > new trees, even if no notes were copied at all. > > Teach add_note() and remove_note() to flag the affected notes tree as > changed ('dirty'). Then teach builtin/notes.c to use this knowledge > and avoid committing trees that weren't changed. > > Signed-off-by: Thomas Rast Acked-by: Johan Herland -- Johan Herland, www.herland.net