tukusejssirs

tukusejssirs a commenté le problème demure/dotfiles#9

Add more information about the Git files in prompt

I have just noticed that when the remote branch (that is tracked by local branch currently checked out) has diverged from the local branch, we try to merge it by pulling the changes (`git pull`), and there are some conflicts, there are some additional ‘shortcuts’ in the `git status -s` output:

il y a 5 ans

tukusejssirs a commenté le problème demure/dotfiles#9

Add more information about the Git files in prompt

I have just added two new file statuses (I have forgot about them) to the issue description. I add them in this comment too, just to make it obvious.

il y a 5 ans

tukusejssirs a commenté le problème demure/dotfiles#9

Add more information about the Git files in prompt

It looks nice. :)

il y a 5 ans

tukusejssirs a commenté le problème demure/dotfiles#9

Add more information about the Git files in prompt

You’re right about `grep -c`—I have totally forgotten it! I have changed it in the issue description.

il y a 5 ans

tukusejssirs a ouvert un problème demure/dotfiles#9

Add more information about the Git files in prompt

il y a 5 ans

tukusejssirs a commenté le problème demure/dotfiles#8

`subbash/prompt`: Length of detached HEAD hash

I agree on short hashes shorter than 7 hex digits. I always keep it unmodified (i.e. to 7 digits as it is set by default). I just wanted to note that (1) you hard-coded it to 8 digits; (2) it won’t change the number of digits if someone changes their config or when the minimum hash size that would not collide is higher than 8 digits (like the `linux` repo).

il y a 6 ans

tukusejssirs a ouvert un problème demure/dotfiles#8

`subbash/prompt`: Length of detached HEAD hash

il y a 6 ans

tukusejssirs a commenté le problème demure/dotfiles#7

`subbash/prompt`: Any reason for adding `[` and `]` to GBranch var instead of PS1?

Oh, I forgot about that. I think it is better to have a few more characters in comparison with additional `if` statement.

il y a 6 ans

tukusejssirs a commenté le problème demure/dotfiles#6

`subbash/prompt`: GBranch: simplify the command

No problem. I just gave a suggestion which can be rejected—as always. :)

il y a 6 ans

tukusejssirs a ouvert un problème demure/dotfiles#7

`subbash/prompt`: Any reason for adding `[` and `]` to GBranch var instead of PS1?

il y a 6 ans

tukusejssirs a commité dans master sur tukusejssirs/dotfiles

il y a 6 ans

tukusejssirs branche supprimée gbranch_optim sur tukusejssirs/dotfiles

il y a 6 ans

tukusejssirs a commité dans gbranch_optim sur tukusejssirs/dotfiles

il y a 6 ans

tukusejssirs nouvelle branche créée gbranch_optim sur tukusejssirs/dotfiles

il y a 6 ans

tukusejssirs branche supprimée git_branch_name sur tukusejssirs/dotfiles

il y a 6 ans

tukusejssirs a commenté le problème demure/dotfiles#6

`subbash/prompt`: GBranch: simplify the command

If anything, it should faster (I’ve removed the branch name from the output):

il y a 6 ans

tukusejssirs a ouvert un problème hp/gogs#219

Keyboard shortcuts

il y a 6 ans

tukusejssirs a ouvert un problème hp/gogs#218

Search in Issues

il y a 6 ans

tukusejssirs a ouvert un problème demure/dotfiles#6

`subbash/prompt`: GBranch: simplify the command

il y a 6 ans

tukusejssirs a commenté le problème demure/dotfiles#5

Feature Request: `subbash/prompt`: checkout to ‘detached HEAD’

You’re right. I did know that I should create a new branch if I want to commit. However, I _thought_ it is still connected to a branch.

il y a 6 ans