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 02:10:53PM CEST, I got a letter where Sergey Vlasov <[EMAIL PROTECTED]> told me that... > However, cg-export is buggy - if you use the second argument > (cg-export DESTFILE TREE_ID), the resulting tar file is different > from what git-tar-tree produces for the sa

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 > > > >

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 > > r

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 th

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

2005-08-12 Thread Linus Torvalds
On Fri, 12 Aug 2005, Linus Torvalds 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". Btw, I just checked that git-tar-tree is documented and has a man-page. It does. However, that man-p

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

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: > > My git snapshot creator that builds the hourly tarballs at > http://www.codemonkey.org.uk/projects/git-snapshots/ > currently does an rsync, and then a checkout, and finally > it cleans up by removing all the checked out files. > It currently does this b

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

2005-08-12 Thread Dave Jones
Gar, got caught by the 'reply-to' going to Tony only... Dave --- Begin Message --- On Fri, Aug 12, 2005 at 10:31:17AM -0700, Luck, Tony wrote: > I've just got around to noticing some of the new (to > me) features in git, and started experimenting with > branches. Seems a good

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 c