hex 1882 builtin/blame.c char hex[41]; hex 1884 builtin/blame.c strcpy(hex, sha1_to_hex(suspect->commit->object.sha1)); hex 1886 builtin/blame.c hex, hex 1896 builtin/blame.c printf("%s %d %d\n", hex, hex 1920 builtin/blame.c char hex[41]; hex 1924 builtin/blame.c strcpy(hex, sha1_to_hex(suspect->commit->object.sha1)); hex 1933 builtin/blame.c memset(hex, ' ', length); hex 1940 builtin/blame.c printf("%.*s", length, hex); hex 1322 builtin/merge.c char hex[41]; hex 1328 builtin/merge.c strcpy(hex, find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV)); hex 1334 builtin/merge.c "allegedly by %s."), hex, signature_check.signer); hex 1337 builtin/merge.c "allegedly by %s."), hex, signature_check.signer); hex 1339 builtin/merge.c die(_("Commit %s does not have a GPG signature."), hex); hex 1343 builtin/merge.c hex, signature_check.signer); hex 1418 builtin/merge.c char hex[41]; hex 1420 builtin/merge.c strcpy(hex, find_unique_abbrev(head_commit->object.sha1, DEFAULT_ABBREV)); hex 1424 builtin/merge.c hex, hex 96 builtin/reset.c const char *hex, *body; hex 99 builtin/reset.c hex = find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV); hex 100 builtin/reset.c printf(_("HEAD is now at %s"), hex); hex 220 builtin/rev-list.c char hex[41] = ""; hex 245 builtin/rev-list.c strcpy(hex, sha1_to_hex(revs->commits->item->object.sha1)); hex 252 builtin/rev-list.c print_var_str("bisect_rev", hex); hex 22 builtin/show-ref.c const char *hex = find_unique_abbrev(oid->hash, abbrev); hex 24 builtin/show-ref.c printf("%s\n", hex); hex 26 builtin/show-ref.c printf("%s %s\n", hex, refname); hex 32 builtin/show-ref.c const char *hex; hex 86 builtin/show-ref.c hex = find_unique_abbrev(peeled.hash, abbrev); hex 87 builtin/show-ref.c printf("%s %s^{}\n", hex, refname); hex 1074 cache.h extern int get_sha1_hex(const char *hex, unsigned char *sha1); hex 1075 cache.h extern int get_oid_hex(const char *hex, struct object_id *sha1); hex 2004 compat/mingw.c static const char *hex = "0123456789abcdef"; hex 2005 compat/mingw.c wcs[wpos++] = hex[c >> 4]; hex 2007 compat/mingw.c wcs[wpos++] = hex[c & 0x0f]; hex 325 diff.c char hex[41]; hex 2885 diff.c strcpy(temp->hex, sha1_to_hex(sha1)); hex 2886 diff.c temp->hex[40] = 0; hex 2904 diff.c strcpy(temp->hex, "."); hex 2933 diff.c strcpy(temp->hex, sha1_to_hex(null_sha1)); hex 2935 diff.c strcpy(temp->hex, sha1_to_hex(one->sha1)); hex 2961 diff.c argv_array_push(argv, temp->hex); hex 4086 diff.c static char hex[41]; hex 4088 diff.c sprintf(hex, "%s%.*s", abbrev, len+3-abblen, ".."); hex 4090 diff.c sprintf(hex, "%s...", abbrev); hex 4091 diff.c return hex; hex 423 fetch-pack.c const char *hex = sha1_to_hex(result_sha1); hex 424 fetch-pack.c packet_buf_write(&req_buf, "have %s\n", hex); hex 38 hex.c int get_sha1_hex(const char *hex, unsigned char *sha1) hex 48 hex.c if (!hex[0]) hex 50 hex.c val = (hexval(hex[0]) << 4) | hexval(hex[1]); hex 54 hex.c hex += 2; hex 59 hex.c int get_oid_hex(const char *hex, struct object_id *oid) hex 61 hex.c return get_sha1_hex(hex, oid->hash); hex 68 hex.c static const char hex[] = "0123456789abcdef"; hex 74 hex.c *buf++ = hex[val >> 4]; hex 75 hex.c *buf++ = hex[val & 0xf]; hex 277 http-push.c char *hex = sha1_to_hex(request->obj->sha1); hex 280 http-push.c request->url = get_remote_object_url(repo->url, hex, 1); hex 352 http-push.c char *hex = sha1_to_hex(request->obj->sha1); hex 393 http-push.c append_remote_object_url(&buf, repo->url, hex, 0); hex 396 http-push.c append_remote_object_url(&buf, repo->url, hex, 0); hex 1017 http-push.c char hex[40]; hex 1022 http-push.c memcpy(hex, path, 2); hex 1025 http-push.c memcpy(hex, path, 38); hex 1027 http-push.c return get_sha1_hex(hex, sha1); hex 1190 http-push.c static const char hex[] = "0123456789abcdef"; hex 1193 http-push.c path[8] = hex[val >> 4]; hex 1194 http-push.c path[9] = hex[val & 0xf]; hex 451 http-walker.c char *hex = sha1_to_hex(sha1); hex 459 http-walker.c return error("Couldn't find request for %s in the queue", hex); hex 491 http-walker.c ret = error("Request for %s aborted", hex); hex 499 http-walker.c req->http_code, hex); hex 502 http-walker.c ret = error("File %s (%s) corrupt", hex, req->url); hex 504 http-walker.c ret = error("File %s has bad hash", hex); hex 897 http.c const char *hex, hex 902 http.c strbuf_addf(buf, "objects/%.*s/", 2, hex); hex 904 http.c strbuf_addf(buf, "%s", hex+2); hex 907 http.c char *get_remote_object_url(const char *url, const char *hex, hex 911 http.c append_remote_object_url(&buf, url, hex, only_two_digit_prefix); hex 1668 http.c char *hex = sha1_to_hex(sha1); hex 1721 http.c freq->url = get_remote_object_url(base_url, hex, 0); hex 1781 http.c hex, prev_posn); hex 131 http.h const char *hex, hex 133 http.h extern char *get_remote_object_url(const char *url, const char *hex, hex 867 imap-send.c char hex[33]; hex 885 imap-send.c hex[32] = 0; hex 887 imap-send.c hex[2 * i] = hexchar((hash[i] >> 4) & 0xf); hex 888 imap-send.c hex[2 * i + 1] = hexchar(hash[i] & 0xf); hex 892 imap-send.c resp_len = strlen(user) + 1 + strlen(hex) + 1; hex 894 imap-send.c sprintf(response, "%s %s", user, hex); hex 342 notes.c static int get_sha1_hex_segment(const char *hex, unsigned int hex_len, hex 349 notes.c unsigned int val = (hexval(hex[0]) << 4) | hexval(hex[1]); hex 353 notes.c hex += 2; hex 108 pkt-line.c out->buf[orig_len + 0] = hex(n >> 12); hex 109 pkt-line.c out->buf[orig_len + 1] = hex(n >> 8); hex 110 pkt-line.c out->buf[orig_len + 2] = hex(n >> 4); hex 111 pkt-line.c out->buf[orig_len + 3] = hex(n); hex 544 pretty.c const char *hex = NULL; hex 546 pretty.c hex = find_unique_abbrev(p->object.sha1, pp->abbrev); hex 547 pretty.c if (!hex) hex 548 pretty.c hex = sha1_to_hex(p->object.sha1); hex 551 pretty.c strbuf_addf(sb, " %s", hex); hex 23 rerere.c const char *rerere_path(const char *hex, const char *file) hex 25 rerere.c return git_path("rr-cache/%s/%s", hex, file); hex 28 rerere.c static int has_rerere_resolution(const char *hex) hex 31 rerere.c return !stat(rerere_path(hex, "postimage"), &st); hex 518 rerere.c char *hex; hex 523 rerere.c hex = xstrdup(sha1_to_hex(sha1)); hex 524 rerere.c string_list_insert(rr, path)->util = hex; hex 525 rerere.c if (mkdir_in_gitdir(git_path("rr-cache/%s", hex))) hex 527 rerere.c handle_file(path, NULL, rerere_path(hex, "preimage")); hex 631 rerere.c char *hex; hex 638 rerere.c hex = xstrdup(sha1_to_hex(sha1)); hex 639 rerere.c filename = rerere_path(hex, "postimage"); hex 645 rerere.c handle_cache(path, sha1, rerere_path(hex, "preimage")); hex 649 rerere.c string_list_insert(rr, path)->util = hex; hex 21 rerere.h extern const char *rerere_path(const char *hex, const char *file); hex 177 sha1_file.c static char hex[] = "0123456789abcdef"; hex 180 sha1_file.c *pos++ = hex[val >> 4]; hex 181 sha1_file.c *pos = hex[val & 0xf]; hex 213 sha1_file.c static const char hex[] = "0123456789abcdef"; hex 230 sha1_file.c *buf++ = hex[val >> 4]; hex 231 sha1_file.c *buf++ = hex[val & 0xf]; hex 3500 sha1_file.c char hex[41]; hex 3503 sha1_file.c snprintf(hex, sizeof(hex), "%02x%s", hex 3505 sha1_file.c if (!get_sha1_hex(hex, sha1)) { hex 78 sha1_name.c char hex[40]; hex 99 sha1_name.c sprintf(hex, "%.2s", hex_pfx); hex 115 sha1_name.c memcpy(hex + 2, de->d_name, 38); hex 116 sha1_name.c if (!get_sha1_hex(hex, sha1)) hex 374 sha1_name.c static char hex[41]; hex 376 sha1_name.c memcpy(hex, sha1_to_hex(sha1), 40); hex 378 sha1_name.c return hex; hex 382 sha1_name.c status = get_short_sha1(hex, len, sha1_ret, GET_SHA1_QUIETLY); hex 386 sha1_name.c hex[len] = 0; hex 387 sha1_name.c return hex; hex 391 sha1_name.c return hex; hex 163 shallow.c const char *hex = oid_to_hex(&graft->oid); hex 177 shallow.c packet_buf_write(data->out, "shallow %s", hex); hex 179 shallow.c strbuf_addstr(data->out, hex); hex 279 upload-pack.c static int got_sha1(char *hex, unsigned char *sha1) hex 284 upload-pack.c if (get_sha1_hex(hex, sha1)) hex 285 upload-pack.c die("git upload-pack: expected SHA1 object, got '%s'", hex); hex 413 upload-pack.c const char *hex = sha1_to_hex(sha1); hex 416 upload-pack.c packet_write(1, "ACK %s ready\n", hex); hex 418 upload-pack.c packet_write(1, "ACK %s continue\n", hex); hex 12 walker.c void walker_say(struct walker *walker, const char *fmt, const char *hex) hex 15 walker.c fprintf(stderr, fmt, hex);