git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Detecting when bulk file-system operations complete
@ 2021-03-31  3:39 Drew Noakes
  2021-03-31 16:03 ` Philip Oakley
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Noakes @ 2021-03-31  3:39 UTC (permalink / raw)
  To: git

Hi,

I develop IDE tooling that watches a repo's workspace and reacts to changes.

Bulk file-system changes (i.e. branch switch, rebase, merge,
cherry-pick) trigger lots of file system events, and my tooling should
ignore intermediary updates. Currently I debounce events with a fixed
time span, but would like a more reliable and performant approach to
scheduling this reactive work.

Can this be done by monitoring the GITDIR in some way? For example, is
there a file that's present when these operations are in flight, and
which is removed when they complete?

If an operation is interrupted (i.e. merge or rebase that hits a
conflict) my tooling should consider the bulk operation as complete.
This means that detecting a git-rebase-todo file or
rebase-merge/rebase-apply folder is not adequate.

Any help appreciated. Thanks!

Drew.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-02 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31  3:39 Detecting when bulk file-system operations complete Drew Noakes
2021-03-31 16:03 ` Philip Oakley
2021-04-01 13:10   ` Derrick Stolee
2021-04-02 15:02     ` Jeff Hostetler

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).