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

Show a git branch #23

Closed
certik opened this issue Sep 6, 2024 · 1 comment
Closed

Show a git branch #23

certik opened this issue Sep 6, 2024 · 1 comment

Comments

@certik
Copy link
Collaborator

certik commented Sep 6, 2024

This one is tricky: we do not want to touch the file system after every "enter". Rather, it looks like we need to be watching .git/HEAD in a separate thread, and update an internal variable every time the git branch changes. Then in the prompt we want to just print the branch.

Later we should change the git branch right when it happens (no need to press enter).

@certik
Copy link
Collaborator Author

certik commented Sep 8, 2024

Fixed in #67

@certik certik closed this as completed Sep 8, 2024
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

1 participant