X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=patch-id.c;h=0df4cb086ba26d1f4d56b8347a6a7bcf219832f5;hb=003b33a8ad686ee4a0d0b36635bfd6aba940b24a;hp=871f1d20c0e364220d23035b34685ced8737cda8;hpb=58066bec5a2cd8f5b6bb4884c8162364374ba0c1;p=git.git diff --git a/patch-id.c b/patch-id.c index 871f1d20c..0df4cb086 100644 --- a/patch-id.c +++ b/patch-id.c @@ -1,4 +1,5 @@ #include "cache.h" +#include "exec_cmd.h" static void flush_current_id(int patchlen, unsigned char *id, git_SHA_CTX *c) { @@ -72,13 +73,15 @@ static void generate_id_list(void) flush_current_id(patchlen, sha1, &ctx); } -static const char patch_id_usage[] = "git-patch-id < patch"; +static const char patch_id_usage[] = "git patch-id < patch"; int main(int argc, char **argv) { if (argc != 1) usage(patch_id_usage); + git_extract_argv0_path(argv[0]); + generate_id_list(); return 0; }