git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: Re: git checkout -f branch doesn't remove extra files
@ 2005-08-13  4:17 Dave Jones
  2005-08-13  5:05 ` Linus Torvalds
  0 siblings, 1 reply; 8+ messages in thread
From: Dave Jones @ 2005-08-13  4:17 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 65 bytes --]

Gar, got caught by the 'reply-to' going to Tony only...

		Dave


[-- Attachment #2: Type: message/rfc822, Size: 1308 bytes --]

From: Dave Jones <davej@redhat.com>
To: "Luck, Tony" <tony.luck@intel.com>
Subject: Re: git checkout -f branch doesn't remove extra files
Date: Sat, 13 Aug 2005 00:16:13 -0400
Message-ID: <20050813041613.GA25236@redhat.com>

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 day to learn new features, I was completely
unaware of git-ls-files somehow.

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 by hand, but on learning about
this 'new' command, I thought, cool, now I can do..

git-ls-files | xargs rm -rf

however, this then leaves a bunch of empty subdirs, as
git-ls-files doesn't list the subdirs by themselves in
the output.  Am I missing some other option ?

		Dave


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-08-13 12:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-13  4:17 Fwd: Re: git checkout -f branch doesn't remove extra files Dave Jones
2005-08-13  5:05 ` Linus Torvalds
2005-08-13  5:27   ` Dave Jones
2005-08-13  5:39     ` Linus Torvalds
2005-08-13  5:33   ` Linus Torvalds
2005-08-13 11:00   ` Petr Baudis
2005-08-13 12:10     ` Sergey Vlasov
2005-08-13 12:33       ` Petr Baudis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).