author | Linus Torvalds <torvalds@linux-foundation.org> | |
Mon, 16 Apr 2007 23:03:15 +0000 (16:03 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 16 Apr 2007 23:51:09 +0000 (16:51 -0700) | ||
commit | a59b276e18f3d4a548caf549e05188cb1bd3a709 | |
tree | 2633d6fd7b33dddee9c1d7ed35d6061bffc957ba | tree | snapshot |
parent | 402fa75eed29c104ae5392ce88560f6bffc64ce7 | commit | diff |
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>
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 | diff | blob | history | |
decorate.c | [new file with mode: 0644] | blob |
decorate.h | [new file with mode: 0644] | blob |
object-refs.c | diff | blob | history | |
object.h | diff | blob | history |