summaryrefslogtreecommitdiff
path: root/patch-ids.c
diff options
context:
space:
mode:
authorXiaolong Ye <xiaolong.ye@intel.com>2016-04-26 07:51:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-26 17:49:57 (GMT)
commitded2c097bae67e00f8b4f3f777a516254207ca15 (patch)
treeee389ffe8d5a76213d690bef3645f1661b95a272 /patch-ids.c
parent90f7b16b3adc78d4bbabbd426fb69aa78c714f71 (diff)
downloadgit-ded2c097bae67e00f8b4f3f777a516254207ca15.zip
git-ded2c097bae67e00f8b4f3f777a516254207ca15.tar.gz
git-ded2c097bae67e00f8b4f3f777a516254207ca15.tar.bz2
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>
Diffstat (limited to 'patch-ids.c')
-rw-r--r--patch-ids.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/patch-ids.c b/patch-ids.c
index b7b3e5a..a4d0016 100644
--- a/patch-ids.c
+++ b/patch-ids.c
@@ -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)