From: Thomas Gummerer Date: Fri, 05 Jan 2018 20:31:51 GMT Subject: Re: [PATCH v5 13/34] directory rename detection: tests for handling overwriting untracked files Message-ID: <20180105203151.GA24806@hank> In-Reply-To: On 01/04, Elijah Newren wrote: > On Wed, Jan 3, 2018 at 5:52 PM, SZEDER Gábor wrote: > > >> + test $(git rev-parse :0:y/b) = $(git rev-parse O:z/b) && > > > > There is a test helper for that :) > > > > test_cmp_rev :0:y/b O:z/b > > > > Note, that this is not only a matter of useful output on failure, but > > also that of correctness and robustness. > > > Cool, good to know. Is there any reason test_cmp_rev is not > documented in t/README? It is documented since a few weeks, I added the docs in 5a0526264b ("t/README: document test_cmp_rev", 2017-11-26). Though as people mention they just look in 't/test-lib-functions.sh' anyway, maybe the docs should live there instead of in the README in the first place? > [...]