Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sparse-checkout will disappear branch info #1868

Closed
frankcbliu opened this issue May 17, 2022 · 3 comments
Closed

sparse-checkout will disappear branch info #1868

frankcbliu opened this issue May 17, 2022 · 3 comments

Comments

@frankcbliu
Copy link

hello!
when i use git sparse-checkout to check out my branch, the branch info on the prompt will disappear.

here is the normal checkout:
image
as u see, the branch name in this checkout is normal.

but when i use spare-checkout, the branch info disappear.

here is the spare-checkout:
image

i am not sure what makes this problem, how can i get back the branch info ?

@frankcbliu frankcbliu changed the title sparse-checkout will sparse-checkout will disappear branch info May 17, 2022
@romkatv
Copy link
Owner

romkatv commented May 17, 2022

Powerlevel10k uses gitstatus to retrieve information about git repositories. gitstatus, in turn, uses libgit2. libgit2 doesn't support sparse checkouts. See libgit2/libgit2#6044.

@frankcbliu
Copy link
Author

Powerlevel10k uses gitstatus to retrieve information about git repositories. gitstatus, in turn, uses libgit2. libgit2 doesn't support sparse checkouts. See libgit2/libgit2#6044.

ok, i see. thanks for your quickly reply~

@mikehdt
Copy link

mikehdt commented May 18, 2022

It does look like there's been an effort recently to support this, which is fantastic news:
libgit2/libgit2#6202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants