Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ int git_hash_init(git_hash_ctx *ctx)
return git_hash_sha1_init(&ctx->sha1);
default:
assert(0);
return -1;
}
}

Expand All @@ -52,6 +53,7 @@ int git_hash_update(git_hash_ctx *ctx, const void *data, size_t len)
return git_hash_sha1_update(&ctx->sha1, data, len);
default:
assert(0);
return -1;
}
}

Expand All @@ -62,6 +64,7 @@ int git_hash_final(git_oid *out, git_hash_ctx *ctx)
return git_hash_sha1_final(out, &ctx->sha1);
default:
assert(0);
return -1;
}
}

Expand Down