tukusejssirs

tukusejssirs 评论了工单 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:

5 年之前

tukusejssirs 评论了工单 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.

5 年之前

tukusejssirs 评论了工单 demure/dotfiles#9

Add more information about the Git files in prompt

It looks nice. :)

5 年之前

tukusejssirs 评论了工单 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.

5 年之前

tukusejssirs 创建了工单 demure/dotfiles#9

Add more information about the Git files in prompt

5 年之前

tukusejssirs 评论了工单 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).

6 年之前

tukusejssirs 创建了工单 demure/dotfiles#8

`subbash/prompt`: Length of detached HEAD hash

6 年之前

tukusejssirs 评论了工单 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.

6 年之前

tukusejssirs 评论了工单 demure/dotfiles#6

`subbash/prompt`: GBranch: simplify the command

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

6 年之前

tukusejssirs 创建了工单 demure/dotfiles#7

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

6 年之前

tukusejssirs 推送了 master 分支的代码到 tukusejssirs/dotfiles

6 年之前

tukusejssirs 删除了 tukusejssirs/dotfiles 的分支 gbranch_optim

6 年之前

tukusejssirs 推送了 gbranch_optim 分支的代码到 tukusejssirs/dotfiles

6 年之前

tukusejssirs 创建了新的分支 gbranch_optimtukusejssirs/dotfiles

6 年之前

tukusejssirs 删除了 tukusejssirs/dotfiles 的分支 git_branch_name

6 年之前

tukusejssirs 评论了工单 demure/dotfiles#6

`subbash/prompt`: GBranch: simplify the command

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

6 年之前

tukusejssirs 创建了工单 hp/gogs#219

Keyboard shortcuts

6 年之前

tukusejssirs 创建了工单 hp/gogs#218

Search in Issues

6 年之前

tukusejssirs 创建了工单 demure/dotfiles#6

`subbash/prompt`: GBranch: simplify the command

6 年之前

tukusejssirs 评论了工单 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.

6 年之前