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

Re: update-index --assume-unchanged doesn't make things go fast

From
Avery Pennarun <apenwarr@gmail.com>
Date
Jun 26, 2008, 01:30 UTC
Message-ID
<32541b130806251830t12b761bo9fa04a48cc53b2a9@mail.gmail.com>
In-Reply-To
<200806252335.05083.jnareb@gmail.com>
On 6/25/08, Jakub Narebski <jnareb@gmail.com> wrote:
Show 14 quoted lines
> On Wed, 25 Jun 2008, Avery Pennarun wrote:
>  > Now the catch is, if I want to implement the daemon I was talking
>  > about earlier, I'd like to be able to notice untracked files (or
>  > directories with untracked files) individually.  Ideally, I guess the
>  > best way would be to just keep a separate list of all existing files
>  > that aren't in the index, and have git status look at that rather than
>  > at the actual filesystem.
>  >
>  > Are there any suggestions for how best to do this?
>
> You can try to take a look at how (third-party and Linux only) inotify
>  extension for Mercurial works.  AFAIK IIRC it uses some kind of daemon
>  which watches for inotify notices and updates Mercorial's equivalent
>  of index.

Sorry, I asked the wrong question. I wasn't asking how to implement the daemon, which I think I can do without much trouble. I actually need to know how to represent the information.

I was thinking of handling updated files by doing update-index --no-assume-unchanged on files that change. But where should I store information about *untracked* files that have changed, so that git-status can still report them but not have to scan them all?

Thanks,
Avery
Previous: Jakub NarebskiNext: Stephen R. van den Berg
Message 9 of 16 in “update-index --assume-unchanged doesn't make things go fast”
  1. Avery PennarunJun 25, 2008
  2. Michael J GruberJun 25, 2008
  3. Avery PennarunJun 25, 2008
  4. Michael J GruberJun 26, 2008
  5. Jakub NarebskiJun 25, 2008
  6. Junio C HamanoJun 25, 2008
  7. Avery PennarunJun 25, 2008
  8. Jakub NarebskiJun 25, 2008
  9. Avery PennarunJun 26, 2008
  10. Stephen R. van den BergJun 26, 2008
  11. Avery PennarunJun 27, 2008
  12. Jakub NarebskiJun 27, 2008
  13. Avery PennarunJun 27, 2008
  14. Dana HowJun 27, 2008
  15. Avery PennarunJun 27, 2008
  16. Junio C HamanoJun 28, 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.