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

Put commit hash in the prompt, when in detached mode #10

Open
fniessen opened this issue Jul 15, 2019 · 4 comments
Open

Put commit hash in the prompt, when in detached mode #10

fniessen opened this issue Jul 15, 2019 · 4 comments

Comments

@fniessen
Copy link

Dear Ben,

When in detached mode, could you put the commit hash in the prompt (instead of "heads/master")?

That was like that in PowerLevel9K, and was a time-saver…

Thanks in advance! Best regards, Fabrice

@robobenklein
Copy link
Owner

image

Am I thinking of something else?

@fniessen
Copy link
Author

That would be it, indeed.
Not sure to understand your question "Am I thinking of something else?", though.

FYI, I just do git checkout, not using the --detach option (which I wasn't aware of).

@robobenklein
Copy link
Owner

Hmmm I haven't been able to reproduce this issue, how did yours break?

@fniessen
Copy link
Author

Hi Ben! Can't reproduce it anymore, in 2 different repos. So, forget about the fact it did not work…

Now, a small wish: it'd be good to have the first 7 figures and no "..." behind them, as I do have in a Git repo which is 10 years old -- where the default hash length is now auto-computed to 8 chars.

If you (can and will) do that, great! Otherwise, you can safely close this issue...

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

No branches or pull requests

2 participants