]> git.ipfire.org Git - thirdparty/git.git/commit
t2000: consolidate second scenario into a single test block
authorZakariyah Ali <zakariyahali100@gmail.com>
Wed, 29 Apr 2026 10:36:06 +0000 (11:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Apr 2026 12:36:45 +0000 (21:36 +0900)
commit4a9e0972280d821990a672a11465f90cef60dfae
treef29476f8e75d66a8815a7c7ca5bbb1fd4a12afe6
parent94f057755b7941b321fd11fec1b2e3ca5313a4e0
t2000: consolidate second scenario into a single test block

The second test scenario in t2000 consists of several fragmented
test_expect_success blocks that handle data setup, tree writes,
execution of git-checkout-index, and final state validation.

Consolidate these nine separate blocks into a single self-contained
test block. This follows the modern Git testing standard where setup,
execution, and validation of a single logical scenario are kept
together.

As a result of this consolidation, the show_files() helper and its
associated test_debug calls are no longer used and have been removed.
This also removes a dependency on the non-portable 'find -ls' command.

Helped-by: Karthik Nayak <karthik.188@gmail.com>
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Zakariyah Ali <zakariyahali100@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2000-conflict-when-checking-files-out.sh