{"thread":{"id":"691","subject":"How stop tracking a file?","startedAt":"2005-05-22T16:48:59Z","lastAt":"2005-06-04T01:24:11Z","messageCount":4,"participants":["jeff millar","Junio C Hamano","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"3752","messageId":"4290B7FB.5070708@adelphia.net","threadId":"691","inReplyTo":null,"subject":"How stop tracking a file?","fromName":"jeff millar","fromEmail":"wa1hco@adelphia.net","sentAt":"2005-05-22T16:48:59Z","receivedAt":"2005-05-22T16:48:59Z","isPatch":false,"sender":{"key":"wa1hco@adelphia.net","avatar":null},"body":"cg-rm does two things\n   rm -f \"$@\"\n   git-update-cache --remove -- \"$@\"\n\nDoes cg support a way to stop tracking a file without deleting it? \nThe idea was to cg-init an entire directory (such as /etc/ or some\nexisting software project) and then selectivly stop tracking files,\nsuch as *.o, selected binaries, ld.so.cache, etc. as they turned up.\n\nthanks,\n\njeff\n"},{"id":"3756","messageId":"7vacmnfapv.fsf@assigned-by-dhcp.cox.net","threadId":"691","inReplyTo":"4290B7FB.5070708@adelphia.net","subject":"Re: How stop tracking a file?","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-05-22T17:10:20Z","receivedAt":"2005-05-22T17:10:20Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":">>>>> \"jm\" == jeff millar <wa1hco@adelphia.net> writes:\n\n    jm> cg-rm does two things\n    jm>    rm -f \"$@\"\n    jm>    git-update-cache --remove -- \"$@\"\n\nI do not do Porcelain, but something along the following lines\nshould work:\n\n    for path\n    do\n        git-update-cache --force-remove \"$path\"\n    done\n\n\n"},{"id":"3769","messageId":"4290CF85.5060105@adelphia.net","threadId":"691","inReplyTo":"7vacmnfapv.fsf@assigned-by-dhcp.cox.net","subject":"Re: How stop tracking a file?","fromName":"jeff millar","fromEmail":"wa1hco@adelphia.net","sentAt":"2005-05-22T18:29:25Z","receivedAt":"2005-05-22T18:29:25Z","isPatch":false,"sender":{"key":"wa1hco@adelphia.net","avatar":null},"body":"Junio C Hamano wrote:\n\n>    jm> cg-rm does two things\n>    jm>    rm -f \"$@\"\n>    jm>    git-update-cache --remove -- \"$@\"\n>\n>I do not do Porcelain, but something along the following lines\n>should work:\n>\n>    for path\n>    do\n>        git-update-cache --force-remove \"$path\"\n>    done\n>\nSeems a bit more difficult...\n[jeff@Desk gsmc-1.1]$ git-update-cache --force-remove main.o\n[jeff@Desk gsmc-1.1]$ cg-diff\nIndex: main.o\n===================================================================\nBinary files a5d1a55e0818ab11b71fee01bcd9053c4ecc65a6/main.o \n(mode:100644) and /dev/null (tree:uncommitted) differ\n[jeff@Desk gsmc-1.1]$ cg-commit\nRefusing to make an empty commit - the tree was not modified\nsince the previous commit. If you really want to make the\ncommit, do: commit-tree `tree-id` -p `parent-id`\nA picky porcelain problem?\n\n\n\n"},{"id":"4523","messageId":"20050604012411.GH13093@pasky.ji.cz","threadId":"691","inReplyTo":"4290CF85.5060105@adelphia.net","subject":"Re: How stop tracking a file?","fromName":"Petr Baudis","fromEmail":"pasky@ucw.cz","sentAt":"2005-06-04T01:24:11Z","receivedAt":"2005-06-04T01:24:11Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Sun, May 22, 2005 at 08:29:25PM CEST, I got a letter\nwhere jeff millar <wa1hco@adelphia.net> told me that...\n> Junio C Hamano wrote:\n> \n> >   jm> cg-rm does two things\n> >   jm>    rm -f \"$@\"\n> >   jm>    git-update-cache --remove -- \"$@\"\n> >\n> >I do not do Porcelain, but something along the following lines\n> >should work:\n> >\n> >   for path\n> >   do\n> >       git-update-cache --force-remove \"$path\"\n> >   done\n> >\n> Seems a bit more difficult...\n> [jeff@Desk gsmc-1.1]$ git-update-cache --force-remove main.o\n> [jeff@Desk gsmc-1.1]$ cg-diff\n> Index: main.o\n> ===================================================================\n> Binary files a5d1a55e0818ab11b71fee01bcd9053c4ecc65a6/main.o \n> (mode:100644) and /dev/null (tree:uncommitted) differ\n> [jeff@Desk gsmc-1.1]$ cg-commit\n> Refusing to make an empty commit - the tree was not modified\n> since the previous commit. If you really want to make the\n> commit, do: commit-tree `tree-id` -p `parent-id`\n> A picky porcelain problem?\n\nOk, it took some non-trivial changes to cg-commit (this part was a quick\nhack before, now it looks a lot better), but cg-rm -n should now do what\nyou want.\n\nThanks for the suggestion,\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nC++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor\n"}]}