Skip to content

Confusion on jj sparse #4658

Answered by martinvonz
iljabauer asked this question in Q&A
Oct 16, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I wasn't familiar with the --no-checkout argument. As the name suggests, it skips the checkout. I would have expected that it left HEAD on an unborn branch or something, but it seems that it simply leaves the index empty, i.e. making its diff compared to HEAD be to remove all files. That's not very friendly IMO, but I understand that Git is limited by not having a virtual root commit.

More importantly, jj doesn't support partial clone (the --filter=blob:none stuff) yet, so it won't work even if you skip --no-checkout (or restore the deleted files).

Also, there's no syncing of patterns between jj's and git's sparse checkouts, so you would have to keep them in sync manually if you use a col…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iljabauer
Comment options

Answer selected by iljabauer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants