aboutsummaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorSiddharth Shrimali <r.siddharth.shrimali@gmail.com>2026-03-13 11:01:59 +0530
committerJunio C Hamano <gitster@pobox.com>2026-03-13 08:20:15 -0700
commitd39cef3a1af5da30fc8db2f31b0cd23cfb45d05b (patch)
treef2a3f2c2fdd2e5bdbe56a89bb9c4e7045408708c /builtin/commit.c
parent67ad42147a7acc2af6074753ebd03d904476118f (diff)
downloadgit-d39cef3a1af5da30fc8db2f31b0cd23cfb45d05b.tar.xz
t0410: modernize delete_object helper
The delete_object helper currently relies on a manual sed command to calculate object paths. This works, but it's a bit brittle and forces us to maintain shell logic that Git's own test suite can already handle more elegantly. Switch to 'test_oid_to_path' to let Git handle the path logic. This makes the helper hash independent, which is much cleaner than manual string manipulation. While at it, use 'local' to declare helper-specific variables and quote them to follow Git's coding style. This prevents them from leaking into global shell scope and avoids potential naming conflicts with other parts of the test suite. Helped-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com> Suggested-by: Jeff King <peff@peff.net> Signed-off-by: Siddharth Shrimali <r.siddharth.shrimali@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions