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

Mercurial's only true "plugin" extension: inotify... and can it be done in Git?

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 9, 2008, 13:59 UTC
Message-ID
<200803091459.21354.jnareb@gmail.com>

When reading "Distributed Revision Control with Mercurial"[1] to see how Mercurial differs from Git, in the chapter 14 "Adding functionality with extensions" there is description (in section 14.1) of one interesting extension (see also [2]), namely 'inotify' extension.

This extension[3][4] optimises "hg status" command by asking file notification daemon about changed files instead of doing stat. I'm not sure how useful this extension is: inotify is Linux specific, and Linux has fast stat... nevertheless this is one example where extension (plug-in) framework shows that it can do more than good scriptability.

I wonder if, and how, such 'extension' could be done with Git...

References: =========== [1] http://hgbook.red-bean.com [2] http://www.selenic.com/mercurial/wiki/index.cgi/UsingExtensions [3] http://hgbook.red-bean.com/hgbookch14.html#x18-31700014.1 [4] http://www.selenic.com/mercurial/wiki/index.cgi/InotifyExtension

-- 
Jakub Narebski
Poland
Next: Jakub Narebski
Message 1 of 10 in “Mercurial's only true "plugin" extension: inotify... and can it be done in Git?”
  1. Jakub NarebskiMar 9, 2008
  2. Jakub NarebskiMar 10, 2008
  3. Andreas EricssonMar 11, 2008
  4. Junio C HamanoMar 11, 2008
  5. Andreas EricssonMar 11, 2008
  6. Jakub NarebskiMar 11, 2008
  7. Geert BoschMar 10, 2008
  8. Shawn O. PearceMar 10, 2008
  9. J. Bruce FieldsMar 10, 2008
  10. Jakub NarebskiMar 15, 2008

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.