]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'en/assert-wo-side-effects'
authorJunio C Hamano <gitster@pobox.com>
Tue, 8 Apr 2025 18:43:12 +0000 (11:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Apr 2025 18:43:12 +0000 (11:43 -0700)
commitb97b360c514acd0f5a148524a85bcdb583dbe914
treedc16900efcc7576ec5211f9c340e18bd01dd9020
parent9d22ac51228304102deb62f30c3ecba6377e1237
parent5633aa3af1282cad5161174f17867399e58b2a54
Merge branch 'en/assert-wo-side-effects'

Ensure what we write in assert() does not have side effects,
and introduce ASSERT() macro to mark those that cannot be
mechanically checked for lack of side effects.

* en/assert-wo-side-effects:
  treewide: replace assert() with ASSERT() in special cases
  ci: add build checking for side-effects in assert() calls
  git-compat-util: introduce ASSERT() macro
Makefile
diffcore-rename.c
git-compat-util.h
merge-ort.c