summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorTeng Long <dyroneteng@gmail.com>2022-07-19 00:46:04 +0800
committerJunio C Hamano <gitster@pobox.com>2022-07-18 11:20:52 -0700
commit9005eb021ad4defbb3635c2aa6049e9300a25798 (patch)
treeec64857c3a73467a32437c10d76d6701f3b6c552 /builtin/commit-graph.c
parent6411cc08f33952ab196ff232f94d602908faf344 (diff)
pack-bitmap.c: using error() instead of silently returning -1
In "open_pack_bitmap_1()" and "open_midx_bitmap_1()", it's better to return error() instead of "-1" when some unexpected error occurs like "stat bitmap file failed", "bitmap header is invalid" or "checksum mismatch", etc. There are places where we do not replace, such as when the bitmap does not exist (no bitmap in repository is allowed) or when another bitmap has already been opened (in which case it should be a warning rather than an error). Signed-off-by: Teng Long <dyroneteng@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions