On Saturday 09 June 2007, Johannes Schindelin wrote: > With the provided script, edit-commit-annotations, you can add > after-the-fact annotations to commits, which will be shown by > the log if the config variable core.showannotations is set. > > The annotations are tracked in a new ref, refs/annotations/commits, > in the same fan-out style as .git/objects/??/*, only that they only > exist in the object database now. Very interesting. I have to say that after having played around with it a couple of minutes, I really like it. Needs some polishing here and there (i.e. cleaning up the COMMIT_ANNOTATION.NNNN* files), but it is a very good proof-of-concept. > I have the hunch that this will be relatively fast and scalable, > since the tree objects are sorted by name (the name being the > object name of the to-be-annotated commit). I think I agree with your hunch, although I initially thought that your solution was a bit heavy on the number of objects created. But, hey, git is _designed_ to handle massive amounts of objects. :) > diff --git a/config.c b/config.c > index 58d3ed5..34db9b2 100644 > --- a/config.c > +++ b/config.c > @@ -356,6 +356,11 @@ int git_default_config(const char *var, const char *value) > return 0; > } > > + if (!strcmp(var, "core.showannotaions")) { > + show_commit_annotations = git_config_bool(var, value); > + return 0; > + } > + Small typo here. "core.showannotaions" should be "core.showannotations", I guess. ...Johan -- Johan Herland, <johan@xxxxxxxxxxx> www.herland.net - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html