Merge branch 'jk/commit-info-slab'

Allow adding custom information to commit objects in order to
represent unbound number of flag bits etc.

* jk/commit-info-slab:
  commit-slab: introduce a macro to define a slab for new type
  commit-slab: avoid large realloc
  commit: allow associating auxiliary info on-demand
This commit is contained in:
Junio C Hamano
2013-07-01 12:41:19 -07:00
3 changed files with 127 additions and 10 deletions

View File

@ -15,7 +15,7 @@ struct commit_list {
struct commit {
struct object object;
void *util;
unsigned int indegree;
unsigned int index;
unsigned long date;
struct commit_list *parents;
struct tree *tree;