Confusion on jj sparse #4658
-
Hi, I'm pretty new to jj but used it manage some of my repos so far without problems. Thank you for jj 🙏 Now I have a giant repository and I try to get it to work. I cannot clone it with git normaly, so I always do:
No I thought I can replace git sparce commands with jj sparse, so I do:
But nothing happens, folder is empty and |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I wasn't familiar with the More importantly, jj doesn't support partial clone (the 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 colocated workspace. So, you will have to do |
Beta Was this translation helpful? Give feedback.
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…