git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Gitk Inotify support

From
Paul Mackerras <paulus@ozlabs.org>
Date
Dec 12, 2016, 01:58 UTC
Message-ID
<20161212015823.GF18316@fergus.ozlabs.ibm.com>
In-Reply-To
<CAHdOBFpOm3hf4XPjpSZ0+8rVgyKj+e3qT0cecU4j9ms=+chnDg@mail.gmail.com>
On Sat, Jun 11, 2016 at 04:06:36PM +0200, Florian Schüller wrote:
Show 16 quoted lines
> >From 74d2f4c1ec560b358fb50b8b7fe8282e7e1457b0 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Florian=20Sch=C3=BCller?= <florian.schueller@gmail.com>
> Date: Thu, 9 Jun 2016 22:54:43 +0200
> Subject: [PATCH] first support for inotify
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> 
> Just automatically update gitk when working in a terminal on the same repo
> 
> Open points for now:
>  - release watches for deleted directories seems to
>    cause problems in tcl-inotify (so I don't)
>    I'm not sure how often that happens in ".git/"
>  - I only call "updatecommits" and I don't know if there is a usecase
>    where I should be calling "reloadcommits"

Thanks for the patch. It's a nice idea. I think it needs a couple of improvements, though, to make it work even better:

* Some users might not want this behaviour, so we need an option in
  the preferences pane to enable/disable this.
* I would expect that the updates to the files in .git would come in
  bursts, so we should probably do something like wait until (say) one
  second has elapsed since the last notification, without any more
  notifications, before starting the update.
* We probably want to rate-limit the updates, since on a large tree
  (e.g. the Linux kernel) the update can take several seconds and the
  UI is less responsive during that time.
Paul.
Previous: Florian SchüllerNext: Florian Schüller
Message 4 of 5 in “Gitk Inotify support”
  1. Gitk Inotify supportFlorian Schüller, Jun 9, 2016
  2. Stefan BellerJun 9, 2016
  3. Florian SchüllerJun 11, 2016
  4. Paul MackerrasDec 12, 2016
  5. Florian SchüllerJan 1, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.