summaryrefslogtreecommitdiff
path: root/object-file.c
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2025-03-19 16:22:58 +0000
committerJunio C Hamano <gitster@pobox.com>2025-03-21 03:32:10 -0700
commit5633aa3af1282cad5161174f17867399e58b2a54 (patch)
treec48ce7f4c1b215b9df553c61c8e4c300af51f3d9 /object-file.c
parent85e4f762c224c52708919a10c9fa5b79e7949564 (diff)
treewide: replace assert() with ASSERT() in special cases
When the compiler/linker cannot verify that an assert() invocation is free of side effects for us (e.g. because the assertion includes some kind of function call), replace the use of assert() with ASSERT(). Signed-off-by: Elijah Newren <newren@gmail.com> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.c')
-rw-r--r--object-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c
index 726e41a047..4fb3cd9dcb 100644
--- a/object-file.c
+++ b/object-file.c
@@ -2706,7 +2706,7 @@ static int index_stream_convert_blob(struct index_state *istate,
struct strbuf sbuf = STRBUF_INIT;
assert(path);
- assert(would_convert_to_git_filter_fd(istate, path));
+ ASSERT(would_convert_to_git_filter_fd(istate, path));
convert_to_git_filter_fd(istate, path, fd, &sbuf,
get_conv_flags(flags));