Skip to contentSkip to conversation

Auto-refresh git-gui

DISCUSSION Victor Engmark 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Is there some way to make git-gui rescan automatically when anything in the repository changes? That would enable a more fluid workflow when combined with other Git tools.

Use cases:
* "Dashboard" functionality to keep track of changes without having to run git status all the time.
* git / git-gui introduction: See what happens live while working with the other tool.

Signature · 9 lines
Victor Engmark
terreActive AG
Kasinostrasse 30
CH-5001 Aarau
Tel: +41 62 834 00 55
Fax: +41 62 823 93 56
www.terreactive.ch

Wir sichern Ihren Erfolg - seit 15 Jahren
#1 lore raw

Hi Victor,

Quoted 3 lines · Victor Engmark

Is there some way to make git-gui rescan automatically when anything in the repository changes?

How about doing it each time git gui gets focus? Or if that's to much do it only if it gets focus _and_ the index has changed?

Clemens

#2 lore raw
Quoted 9 lines · Clemens Buchacher

Hi Victor,

Quoted 3 lines · Victor Engmark

Is there some way to make git-gui rescan automatically when anything in the repository changes?

How about doing it each time git gui gets focus? Or if that's to much do it only if it gets focus _and_ the index has changed?

Ideally (like in jEdit) this should be configurable. In Options -> General of jEdit, there are the following settings:

"If open files are changed on disk", with options:
* do nothing
* prompt
* automatically reload and notify user
* autoreload without notification

"Check for file change upon", with options:
* application focus
* application focus, visiting the buffer or saving any buffer
* visiting the buffer or saving any buffer
* visiting or saving the buffer
* saving the buffer

Based on this, I guess we could use the following settings:

"When repository changes", with options:
* do nothing [This could optionally disable the next setting]
* prompt
* rescan and notify user
* rescan without notification

"Check for repository changes", with options:
* always [Could be implemented with something like inotifywait -rm]
* upon application focus
* upon staging, unstaging, committing or pushing

I think I can see use cases for all these options, although it might be a bit much to chew for a first iteration.

Signature · 9 lines
Victor Engmark
terreActive AG
Kasinostrasse 30
CH-5001 Aarau
Tel: +41 62 834 00 55
Fax: +41 62 823 93 56
www.terreactive.ch

Wir sichern Ihren Erfolg - seit 15 Jahren
#3 lore raw

Not to muddy the waters, but if you're open to alternatives, if you have inotify installed, git cola will automatically update it's status whenever files in your repository change.

Signature · 4 lines
   Uri

Please consider the environment before printing this message.
http://wwf.panda.org/savepaper/