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
patch-ids.h
#ifndef PATCH_IDS_H
#define PATCH_IDS_H

struct patch_id {
	unsigned char patch_id[20];
	char seen;
};

struct patch_ids {
	struct diff_options diffopts;
	int nr, alloc;
	struct patch_id **table;
	struct patch_id_bucket *patches;
};

int init_patch_ids(struct patch_ids *);
int free_patch_ids(struct patch_ids *);
struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);
struct patch_id *has_commit_patch_id(struct commit *, struct patch_ids *);

#endif /* PATCH_IDS_H */
back to top