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

refresh-mode periodic does not update branch labels #1270

Closed
Debilski opened this issue Feb 28, 2023 · 1 comment
Closed

refresh-mode periodic does not update branch labels #1270

Debilski opened this issue Feb 28, 2023 · 1 comment

Comments

@Debilski
Copy link

I have set

git config tig.refresh-mode periodic
git config tig.refresh-interval 1

When I create new commits in one window and have tig running in another, it will update to integrate the new commit but the [main] branch tag will not be moved. Similarly, when creating new branches or switching branches, the labels will not be updated either.

Test session:

window 1:

$ git commit --allow-empty -m "Initial commit."
[main (root-commit) c2b1c67] Initial commit.

window 2:

$ tig
2023-02-28 14:46 +0100 Firstname Lastname I [main] Initial commit.

then, window 1:

$ git commit --allow-empty -m "Second commit."
[main 0b51031] Second commit.

window 2 (the commit appears but it is not [main]):

2023-02-28 14:46 +0100 Firstname Lastname o Second commit.                                                                                                                                                                                                                 
2023-02-28 14:46 +0100 Firstname Lastname I [main] Initial commit.

then, window 1:

$ git branch newbranch
$ git switch newbranch

window 2 (completely unchanged):

2023-02-28 14:46 +0100 Firstname Lastname o Second commit.                                                                                                                                                                                                                 
2023-02-28 14:46 +0100 Firstname Lastname I [main] Initial commit.

Hitting R in window 2:

2023-02-28 14:46 +0100 Firstname Lastname o [main] [newbranch] Second commit.                                                                                                                                                                                              
2023-02-28 14:46 +0100 Firstname Lastname I Initial commit.
@ilyagr
Copy link

ilyagr commented Dec 27, 2023

Thank you so much for fixing this! :)

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

3 participants