From: Petr Baudis Date: Sat, 04 Jun 2005 01:24:11 GMT Subject: Re: How stop tracking a file? Message-ID: <20050604012411.GH13093@pasky.ji.cz> In-Reply-To: <4290CF85.5060105@adelphia.net> Dear diary, on Sun, May 22, 2005 at 08:29:25PM CEST, I got a letter where jeff millar told me that... > Junio C Hamano wrote: > > > jm> cg-rm does two things > > jm> rm -f "$@" > > jm> git-update-cache --remove -- "$@" > > > >I do not do Porcelain, but something along the following lines > >should work: > > > > for path > > do > > git-update-cache --force-remove "$path" > > done > > > Seems a bit more difficult... > [jeff@Desk gsmc-1.1]$ git-update-cache --force-remove main.o > [jeff@Desk gsmc-1.1]$ cg-diff > Index: main.o > =================================================================== > Binary files a5d1a55e0818ab11b71fee01bcd9053c4ecc65a6/main.o > (mode:100644) and /dev/null (tree:uncommitted) differ > [jeff@Desk gsmc-1.1]$ cg-commit > Refusing to make an empty commit - the tree was not modified > since the previous commit. If you really want to make the > commit, do: commit-tree `tree-id` -p `parent-id` > A picky porcelain problem? Ok, it took some non-trivial changes to cg-commit (this part was a quick hack before, now it looks a lot better), but cg-rm -n should now do what you want. Thanks for the suggestion, -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor