diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-30 14:44:58 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-30 15:22:04 -0700 |
| commit | 974f0d46645604ac45b8a5ce0b90e2b2a56ca764 (patch) | |
| tree | 7a633a4f5edaadc86a7cf07c0a178384e05451a0 /list-objects-filter.c | |
| parent | builtin/mv: bail out when trying to move child and its parent (diff) | |
| download | git-974f0d46645604ac45b8a5ce0b90e2b2a56ca764.tar.gz git-974f0d46645604ac45b8a5ce0b90e2b2a56ca764.zip | |
builtin/mv: convert assert(3p) into `BUG()`
The use of asserts is discouraged in our codebase because they lead to
different behaviour depending on how Git is built. When being unsure
enough whether a condition always holds so that one adds the assert,
then the assert should probably trigger regardless of how Git is being
built.
Drop the call to assert(3p) in git-mv(1) and instead use `BUG()`.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list-objects-filter.c')
0 files changed, 0 insertions, 0 deletions
