Skip to content

Commit ded2c09

Browse files
0day-trouble-makergitster
authored andcommitted
patch-ids: make commit_patch_id() a public helper function
Make commit_patch_id() available to other builtins. Signed-off-by: Xiaolong Ye <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 90f7b16 commit ded2c09

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

patch-ids.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "sha1-lookup.h"
55
#include "patch-ids.h"
66

7-
static int commit_patch_id(struct commit *commit, struct diff_options *options,
7+
int commit_patch_id(struct commit *commit, struct diff_options *options,
88
unsigned char *sha1)
99
{
1010
if (commit->parents)

patch-ids.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ struct patch_ids {
1313
struct patch_id_bucket *patches;
1414
};
1515

16+
int commit_patch_id(struct commit *commit, struct diff_options *options,
17+
unsigned char *sha1);
1618
int init_patch_ids(struct patch_ids *);
1719
int free_patch_ids(struct patch_ids *);
1820
struct patch_id *add_commit_patch_id(struct commit *, struct patch_ids *);

0 commit comments

Comments
 (0)