]> git.ipfire.org Git - thirdparty/git.git/commit - decorate.c
Add a generic "object decorator" interface, and make object refs use it
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 16 Apr 2007 23:03:15 +0000 (16:03 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 16 Apr 2007 23:51:09 +0000 (16:51 -0700)
commita59b276e18f3d4a548caf549e05188cb1bd3a709
tree2633d6fd7b33dddee9c1d7ed35d6061bffc957ba
parent402fa75eed29c104ae5392ce88560f6bffc64ce7
Add a generic "object decorator" interface, and make object refs use it

This allows you to add an arbitrary "decoration" of your choice to any
object.  It's a space- and time-efficient way to add information to
arbitrary objects, especially if most objects probably do not have the
decoration.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile
decorate.c [new file with mode: 0644]
decorate.h [new file with mode: 0644]
object-refs.c
object.h