Re: Fwd: Re: git checkout -f branch doesn't remove extra files

2005-08-13 Thread Petr Baudis
Dear diary, on Sat, Aug 13, 2005 at 07:05:11AM CEST, I got a letter where Linus Torvalds [EMAIL PROTECTED] told me that... If you really want a temporary tree, what you do is something like git-checkout-cache --prefix=tmp-dir/ -f -a and when you're done, you just do rm -rf

Re: Fwd: Re: git checkout -f branch doesn't remove extra files

2005-08-13 Thread Sergey Vlasov
On Sat, 13 Aug 2005 13:00:51 +0200 Petr Baudis wrote: Dear diary, on Sat, Aug 13, 2005 at 07:05:11AM CEST, I got a letter where Linus Torvalds [EMAIL PROTECTED] told me that... [...] snap=git-snapshot-$(date +%Y%m%d) git-tar-tree HEAD $snap | gzip -9 $snap.tar.gz which is even

Re: git checkout -f branch doesn't remove extra files

2005-08-12 Thread Junio C Hamano
Luck, Tony [EMAIL PROTECTED] writes: I see that when I switch view to a different branch with: $ git checkout -f someoldbranch that any files that exist in my previous branch view but not in someoldbranch are not deleted. ... I wondered whether this was a deliberate choice Not

Re: Fwd: Re: git checkout -f branch doesn't remove extra files

2005-08-12 Thread Dave Jones
On Fri, Aug 12, 2005 at 10:05:11PM -0700, Linus Torvalds wrote: HOWEVER, if all you want to do is just a tar-file, then there's a better solution. It's called snap=git-snapshot-$(date +%Y%m%d) git-tar-tree HEAD $snap | gzip -9 $snap.tar.gz which is even easier, and a

Re: Fwd: Re: git checkout -f branch doesn't remove extra files

2005-08-12 Thread Linus Torvalds
On Sat, 13 Aug 2005, Dave Jones wrote: Git actually has a _lot_ of nifty tools. I didn't realize that people didn't know about such basic stuff as git-tar-tree and git-ls-files. Maybe its because things are moving so fast :) Or maybe I just wasn't paying attention on that day. (I