{"thread":{"id":"29289","subject":"Auto-refresh git-gui","startedAt":"2012-01-04T09:15:47Z","lastAt":"2012-01-10T16:14:04Z","messageCount":4,"participants":["Victor Engmark","Clemens Buchacher","Uri Okrent"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"181912","messageId":"20120104091547.GC3484@victor","threadId":"29289","inReplyTo":null,"subject":"Auto-refresh git-gui","fromName":"Victor Engmark","fromEmail":"victor.engmark@terreactive.ch","sentAt":"2012-01-04T09:15:47Z","receivedAt":"2012-01-04T09:15:47Z","isPatch":false,"sender":{"key":"victor.engmark@terreactive.ch","avatar":null},"body":"Is there some way to make `git-gui` rescan automatically when anything\nin the repository changes? That would enable a more fluid workflow when\ncombined with other Git tools.\n\nUse cases:\n* \"Dashboard\" functionality to keep track of changes without having to\nrun `git status` all the time.\n* `git` / `git-gui` introduction: See what happens live while working\nwith the other tool.\n\n-- \nVictor Engmark\nterreActive AG\nKasinostrasse 30\nCH-5001 Aarau\nTel: +41 62 834 00 55\nFax: +41 62 823 93 56\nwww.terreactive.ch\n\nWir sichern Ihren Erfolg - seit 15 Jahren\n"},{"id":"181930","messageId":"20120104163338.GA27567@ecki.lan","threadId":"29289","inReplyTo":"20120104091547.GC3484@victor","subject":"Re: Auto-refresh git-gui","fromName":"Clemens Buchacher","fromEmail":"drizzd@aon.at","sentAt":"2012-01-04T16:33:40Z","receivedAt":"2012-01-04T16:33:40Z","isPatch":false,"sender":{"key":"drizzd@gmx.net","avatar":"https://avatars.githubusercontent.com/u/59082?v=4"},"body":"Hi Victor,\n\nOn Wed, Jan 04, 2012 at 10:15:47AM +0100, Victor Engmark wrote:\n>\n> Is there some way to make `git-gui` rescan automatically when anything\n> in the repository changes?\n\nHow about doing it each time git gui gets focus? Or if that's to\nmuch do it only if it gets focus _and_ the index has changed?\n\nClemens\n"},{"id":"181964","messageId":"20120105080322.GD3484@victor","threadId":"29289","inReplyTo":"20120104163338.GA27567@ecki.lan","subject":"Re: Auto-refresh git-gui","fromName":"Victor Engmark","fromEmail":"victor.engmark@terreactive.ch","sentAt":"2012-01-05T08:03:22Z","receivedAt":"2012-01-05T08:03:22Z","isPatch":false,"sender":{"key":"victor.engmark@terreactive.ch","avatar":null},"body":"On Wed, Jan 04, 2012 at 05:33:40PM +0100, Clemens Buchacher wrote:\n> Hi Victor,\n> \n> On Wed, Jan 04, 2012 at 10:15:47AM +0100, Victor Engmark wrote:\n> >\n> > Is there some way to make `git-gui` rescan automatically when anything\n> > in the repository changes?\n> \n> How about doing it each time git gui gets focus? Or if that's to\n> much do it only if it gets focus _and_ the index has changed?\n\nIdeally (like in jEdit) this should be configurable. In Options ->\nGeneral of jEdit, there are the following settings:\n\n\"If open files are changed on disk\", with options:\n* do nothing\n* prompt\n* automatically reload and notify user\n* autoreload without notification\n\n\"Check for file change upon\", with options:\n* application focus\n* application focus, visiting the buffer or saving any buffer\n* visiting the buffer or saving any buffer\n* visiting or saving the buffer\n* saving the buffer\n\nBased on this, I guess we could use the following settings:\n\n\"When repository changes\", with options:\n* do nothing [This could optionally disable the next setting]\n* prompt\n* rescan and notify user\n* rescan without notification\n\n\"Check for repository changes\", with options:\n* always [Could be implemented with something like `inotifywait -rm`]\n* upon application focus\n* upon staging, unstaging, committing or pushing\n\nI think I can see use cases for all these options, although it might be\na bit much to chew for a first iteration.\n\n-- \nVictor Engmark\nterreActive AG\nKasinostrasse 30\nCH-5001 Aarau\nTel: +41 62 834 00 55\nFax: +41 62 823 93 56\nwww.terreactive.ch\n\nWir sichern Ihren Erfolg - seit 15 Jahren\n"},{"id":"182243","messageId":"CALPkawZR6PU5wNrdG03L9iAk85K4ZEFakF5oQK2fqdqWUMjJzA@mail.gmail.com","threadId":"29289","inReplyTo":"20120105080322.GD3484@victor","subject":"Re: Auto-refresh git-gui","fromName":"Uri Okrent","fromEmail":"uokrent@gmail.com","sentAt":"2012-01-10T16:14:04Z","receivedAt":"2012-01-10T16:14:04Z","isPatch":false,"sender":{"key":"uokrent@gmail.com","avatar":"https://gravatar.com/avatar/7788ed2d4f1bfefc11082b08b0234fd2d752113623753bda4a032a2ae9687acf?d=mp&s=160"},"body":"Not to muddy the waters, but if you're open to alternatives, if you\nhave inotify installed, git cola will automatically update it's status\nwhenever files in your repository change.\n-- \n   Uri\n\nPlease consider the environment before printing this message.\nhttp://wwf.panda.org/savepaper/\n"}]}