X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fpatch-id.c;h=f821eb3f0b864c26d5e822cc7c5b0747340abee5;hb=908aaceb92c4fcc983c395350d4a188778ae500d;hp=49a0472a9bd28274c4be1352996e700a1db4b94a;hpb=f35bb7c38d546a9e8360cde53c03b0b881ab4475;p=git.git diff --git a/builtin/patch-id.c b/builtin/patch-id.c index 49a0472a9..f821eb3f0 100644 --- a/builtin/patch-id.c +++ b/builtin/patch-id.c @@ -1,5 +1,4 @@ -#include "cache.h" -#include "exec_cmd.h" +#include "builtin.h" static void flush_current_id(int patchlen, unsigned char *id, git_SHA_CTX *c) { @@ -57,7 +56,7 @@ static int scan_hunk_header(const char *p, int *p_before, int *p_after) return 1; } -int get_one_patchid(unsigned char *next_sha1, git_SHA_CTX *ctx) +static int get_one_patchid(unsigned char *next_sha1, git_SHA_CTX *ctx) { static char line[1000]; int patchlen = 0, found_next = 0;