Thread (41 messages) 41 messages, 5 authors, 2025-03-19

Re: [PATCH v3 4/6] rev-list: support delimiting objects with NUL bytes

From: Justin Tobler <hidden>
Date: 2025-03-19 16:05:36

On 25/03/19 01:35PM, Christian Couder wrote:
On Fri, Mar 14, 2025 at 1:01 AM Justin Tobler [off-list ref] wrote:
quoted
+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help