https://github.com/git/git
Revision 3cb567386d5d0349bfb5e3aaf85e973faf685dda authored by Johannes Schindelin on 03 July 2007, 15:01:06 UTC, committed by Junio C Hamano on 03 July 2007, 20:44:30 UTC
Without this patch, an added file would be reported as /dev/null.

Noticed by David Kastrup.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9cb18f5
Raw File
Tip revision: 3cb567386d5d0349bfb5e3aaf85e973faf685dda authored by Johannes Schindelin on 03 July 2007, 15:01:06 UTC
diff --no-index: fix --name-status with added files
Tip revision: 3cb5673
decorate.h
#ifndef DECORATE_H
#define DECORATE_H

struct object_decoration {
	struct object *base;
	void *decoration;
};

struct decoration {
	const char *name;
	unsigned int size, nr;
	struct object_decoration *hash;
};

extern void *add_decoration(struct decoration *n, struct object *obj, void *decoration);
extern void *lookup_decoration(struct decoration *n, struct object *obj);

#endif
back to top