Browse Source

patch-ids: make commit_patch_id() a public helper function

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>
maint
Xiaolong Ye 9 years ago committed by Junio C Hamano
parent
commit
ded2c097ba
  1. 2
      patch-ids.c
  2. 2
      patch-ids.h

2
patch-ids.c

@ -4,7 +4,7 @@ @@ -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)

2
patch-ids.h

@ -13,6 +13,8 @@ struct patch_ids { @@ -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 *);

Loading…
Cancel
Save