{"thread":{"id":"2275","subject":"Tracking few files among many","startedAt":"2005-10-30T13:00:02Z","lastAt":"2005-10-30T15:52:44Z","messageCount":3,"participants":["Peter Eriksen","Andreas Ericsson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"10810","messageId":"20051030130001.GA26652@ebar091.ebar.dtu.dk","threadId":"2275","inReplyTo":null,"subject":"Tracking few files among many","fromName":"Peter Eriksen","fromEmail":"s022018@student.dtu.dk","sentAt":"2005-10-30T13:00:02Z","receivedAt":"2005-10-30T13:00:02Z","isPatch":false,"sender":{"key":"s022018@student.dtu.dk","avatar":null},"body":"Hello,\n\nThere's something I can't figure out.  I'm tracking a few\nconfiguration files in $HOME, but some operations are really\nslow.  Let's take git-status as example: \n\n~ > git-status >laaangsom.txt\n~ > wc -l laaangsom.txt\n25875 laaangsom.txt\n~ > cat laaangsom.txt\n#\n# Changed but not updated:\n#   (use git-update-index to mark for commit)\n#\n#       modified: .gaim/blist.xml\n#       modified: .gaim/prefs.xml\n#       modified: .mozilla/firefox/s4q22693.default/prefs.js\n#\n#\n# Untracked files:\n#   (use \"git add\" to add to commit)\n#\n#   [ A lot of untracked files. See the line count above. ]\n\nWhat is going on?  This really doesn't seem like the wanted\nbehavior.  Have I missed something?  I'm using\n46774a81f9d6ca4d230d33757afe9dd07bfe398b  (GIT 0.99.9).\n\nRegards,\n\nPeter\n"},{"id":"10813","messageId":"4364E6D7.9010707@op5.se","threadId":"2275","inReplyTo":"20051030130001.GA26652@ebar091.ebar.dtu.dk","subject":"Re: Tracking few files among many","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2005-10-30T15:29:27Z","receivedAt":"2005-10-30T15:29:27Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Peter Eriksen wrote:\n> Hello,\n> \n> There's something I can't figure out.  I'm tracking a few\n> configuration files in $HOME, but some operations are really\n> slow.  Let's take git-status as example: \n> \n> ~ > git-status >laaangsom.txt\n> ~ > wc -l laaangsom.txt\n> 25875 laaangsom.txt\n> ~ > cat laaangsom.txt\n> #\n> # Changed but not updated:\n> #   (use git-update-index to mark for commit)\n> #\n> #       modified: .gaim/blist.xml\n> #       modified: .gaim/prefs.xml\n> #       modified: .mozilla/firefox/s4q22693.default/prefs.js\n> #\n> #\n> # Untracked files:\n> #   (use \"git add\" to add to commit)\n> #\n> #   [ A lot of untracked files. See the line count above. ]\n> \n> What is going on?  This really doesn't seem like the wanted\n> behavior.  Have I missed something?\n\nApart from the fact that git tracks objects using sha1-hashes, no.\n\nHowever, hashing +25000 files takes quite some time even on a fairly \nquick computer. I also imagine that some of those files are quite large, \nso that doesn't really help.\n\nIf you really (really, really) want to use git to track configuration \nfile changes in your homedir, I'd suggest creating a separate directory \nto keep the real files in and then symlink to those from their usual \nlocations.\n\nOTOH, since you *know* git-status (precisely because it looks for files \nnot added to the index) to be slow, you should use git-diff* instead. I \nimagine you know what files you're tracking anyways since it's just a \nsubset of 25000-something.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"10814","messageId":"20051030155243.GA28021@ebar091.ebar.dtu.dk","threadId":"2275","inReplyTo":"4364E6D7.9010707@op5.se","subject":"Re: Tracking few files among many","fromName":"Peter Eriksen","fromEmail":"s022018@student.dtu.dk","sentAt":"2005-10-30T15:52:44Z","receivedAt":"2005-10-30T15:52:44Z","isPatch":false,"sender":{"key":"s022018@student.dtu.dk","avatar":null},"body":"On Sun, Oct 30, 2005 at 04:29:27PM +0100, Andreas Ericsson wrote:\n> Peter Eriksen wrote:\n> >Hello,\n> >\n> >There's something I can't figure out.  I'm tracking a few\n> >configuration files in $HOME, but some operations are really\n> >slow.  Let's take git-status as example: \n...\n> OTOH, since you *know* git-status (precisely because it looks for files \n> not added to the index) to be slow, you should use git-diff* instead. I \n> imagine you know what files you're tracking anyways since it's just a \n> subset of 25000-something.\n\nI understand now, I just didn't think about this behavior before.\nWhat I could do is add all my files to .gitignore, but that would\nbe insane.\n\nPerhaps I was just confused about it calling those files \"not tracked\".\nI know, I know, it was changed recently to this exactly because it\nwas confusing before.\n\nThanks for clearing that up for me.\n\nPeter\n"}]}