Skip to content

Commit

Permalink
patch-ids: make commit_patch_id() a public helper function
Browse files Browse the repository at this point in the history
Make commit_patch_id() available to other builtins.

Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
0day-trouble-maker authored and gitster committed Apr 26, 2016
1 parent 90f7b16 commit ded2c09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion patch-ids.c
Expand Up @@ -4,7 +4,7 @@
#include "sha1-lookup.h"
#include "patch-ids.h"

static int commit_patch_id(struct commit *commit, struct diff_options *options,
int commit_patch_id(struct commit *commit, struct diff_options *options,
unsigned char *sha1)
{
if (commit->parents)
Expand Down
2 changes: 2 additions & 0 deletions patch-ids.h
Expand Up @@ -13,6 +13,8 @@ struct patch_ids {
struct patch_id_bucket *patches;
};

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

0 comments on commit ded2c09

Please sign in to comment.