Code

commit.h: add 'type' to struct name_decoration
authorNazri Ramliy <ayiehere@gmail.com>
Sat, 19 Jun 2010 01:37:33 +0000 (09:37 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Jun 2010 04:44:01 +0000 (21:44 -0700)
This allows for semantically better handling of decoration type.

Signed-off-by: Nazri Ramliy <ayiehere@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.h

index 6ef88dcf45d6c5b2cd0f26397db2fc7b8859d581..ba818fccbeae11e69e3677b1abb120579f0246bb 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -28,6 +28,7 @@ extern const char *commit_type;
 extern struct decoration name_decoration;
 struct name_decoration {
        struct name_decoration *next;
+       int type;
        char name[1];
 };