git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Caching directories
@ 2006-01-24  4:20 Pavel Roskin
  2006-01-25  5:52 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Roskin @ 2006-01-24  4:20 UTC (permalink / raw)
  To: git

Hello!

I'm thinking of moving cg-clean functionality to git.  After having
switched to StGIT, it's the last cogito command I'm still using.  I
think git can go it much better, since it's a recursive command
traversing the whole repository.

To be safe and useful, the new command should distinguish between
tracked and untracked directories.  Untracked files in tracked
directories are usually the first target for cleaning, as they are
mostly automatic backups and temporary files.  Untracked directories are
more likely candidates to be preserved, as they can hold external
sources, build output, extensive test data etc.

cg-clean considers a directory untracked if it has no cached files in
it.  This carries a significant speed penalty, even if not coded in
bash.

Maybe it's time to start caching directories in git?  I mean,
directories corresponding to tree objects could have their stats
recorded in the cache.  This would allow to distinguish between tracked
and untracked directories without scanning them recursively.

-- 
Regards,
Pavel Roskin

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

end of thread, other threads:[~2006-01-25  7:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-24  4:20 Caching directories Pavel Roskin
2006-01-25  5:52 ` Junio C Hamano
2006-01-25  7:29   ` Pavel Roskin

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 NNTP newsgroup(s).