Staging
v0.5.1
https://github.com/git/git
Revision 08f9c32463bf9e578acb7ac5f77afd36e803c6bc authored by Junio C Hamano on 12 July 2017, 22:24:15 UTC, committed by Junio C Hamano on 12 July 2017, 22:24:15 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 55bdfa0
Raw File
Tip revision: 08f9c32463bf9e578acb7ac5f77afd36e803c6bc authored by Junio C Hamano on 12 July 2017, 22:24:15 UTC
Git 2.13.3
Tip revision: 08f9c32
patch-ids.h
#ifndef PATCH_IDS_H
#define PATCH_IDS_H

struct patch_id {
	struct hashmap_entry ent;
	unsigned char patch_id[GIT_MAX_RAWSZ];
	struct commit *commit;
};

struct patch_ids {
	struct hashmap patches;
	struct diff_options diffopts;
};

int commit_patch_id(struct commit *commit, struct diff_options *options,
		    unsigned char *sha1, int);
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