https://github.com/git/git
Revision 1e102bf7c83281944ffd9202a7d35c514e4a5644 authored by Junio C Hamano on 17 July 2008, 05:42:04 UTC, committed by Junio C Hamano on 17 July 2008, 05:42:04 UTC
A patch title "[PATCH] 1" was sanitized by the original code by stripping
the "[PATCH]" from the front, but after the conversion to use strbuf this
behaviour was broken due to a counting error.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3bf0dd1
Raw File
Tip revision: 1e102bf7c83281944ffd9202a7d35c514e4a5644 authored by Junio C Hamano on 17 July 2008, 05:42:04 UTC
mailinfo: off-by-one fix for [PATCH (foobar)] removal from Subject: line
Tip revision: 1e102bf
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