From: Justin Tobler Date: Wed, 19 Mar 2025 16:02:01 GMT Subject: Re: [PATCH v3 4/6] rev-list: support delimiting objects with NUL bytes Message-ID: <3kjvitvmmi776obptqex7eo32qawegh6lzkih37ppkuina5ohg@loulhg5beghp> In-Reply-To: On 25/03/19 01:35PM, Christian Couder wrote: > On Fri, Mar 14, 2025 at 1:01 AM Justin Tobler wrote: > > > +test_expect_success 'rev-list -z' ' > > + test_when_finished rm -rf repo && > > + > > + git init repo && > > + test_commit -C repo 1 && > > + test_commit -C repo 2 && > > + > > + oid1=$(git -C repo rev-parse HEAD) && > > + oid2=$(git -C repo rev-parse HEAD~) && > > It seems to me that HEAD is at commit 2 and HEAD~ at commit 1 instead > of the other way around. In this case, oid1 and oid2 were ordered based on how they would show up in ouput, but this is somewhat confusing because its not the order they were committed in. I'll change it to be in commit order instead. Thanks, -Justin