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

Provide auto-update option #190

Closed
matthiasbeyer opened this issue Aug 22, 2013 · 7 comments
Closed

Provide auto-update option #190

matthiasbeyer opened this issue Aug 22, 2013 · 7 comments

Comments

@matthiasbeyer
Copy link

Currently, I'm doing this:

watch -n 10 'git log --all --oneline --decorate'

Which gives me a no-colored output (sadly) which updates every n (10 in this case) seconds.

I would love if tig could do this for me. I do not want to manually refresh the screen all the time!

What do you think about this?

@jonas
Copy link
Owner

jonas commented Oct 5, 2013

I think that this could be part of the plan to support refreshing views after running external commands. It would basically have two options: 'update-mode' with values { no, auto, after-cmd } and an 'update-interval'. Note, that the auto will probably only update when a change has been detected, either to the branch name or to the HEAD commit.

@jonas
Copy link
Owner

jonas commented Oct 9, 2013

Correction, one option refresh-view with values:

  • no
  • auto (the default)
  • on-return (after an external command has run)
  • (interval in seconds)

The affected views are: main, diff, blame, branch, status, stage, and stash.

@rjhilgefort
Copy link

👍

2 similar comments
@jtheoof
Copy link

jtheoof commented Jan 21, 2014

👍

@alexleekt
Copy link

👍

@jonas
Copy link
Owner

jonas commented Apr 29, 2014

Please test it out. It is not everything that magically works now. For example it mainly supports auto-update when the index changes.

jonas added a commit that referenced this issue Apr 30, 2014
This adds support for this mode that was discussed in #190 and which is
similar to how refreshing was previous done.
@shuangg
Copy link

shuangg commented May 13, 2014

periodic + interval works. auto is not. OSX 10.9.2, git 1.9.2, tig 2.0.2

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

6 participants