git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* checkout w/ removing untracked files
@ 2010-08-18 19:31 Enrico Weigelt
  2010-08-18 19:51 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Enrico Weigelt @ 2010-08-18 19:31 UTC (permalink / raw)
  To: git


Hi folks,

is there an option to do a checkout _exactly_ as the ref'ed tree ?
(so, also remove untracked files) ?

For my Briegel buildsystem (git://pubgit.metux.de/projects/briegel.git/)
I need to checkout a really tree (iow: no untracked files may be
left in the workdir) from git. ATM I'm removing and recreating the
whole directory first, but I hope to get rid of this step.


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

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

* Re: checkout w/ removing untracked files
  2010-08-18 19:31 checkout w/ removing untracked files Enrico Weigelt
@ 2010-08-18 19:51 ` Junio C Hamano
  2010-08-23 12:12   ` Enrico Weigelt
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2010-08-18 19:51 UTC (permalink / raw)
  To: weigelt; +Cc: git

Enrico Weigelt <weigelt@metux.de> writes:

> For my Briegel buildsystem (git://pubgit.metux.de/projects/briegel.git/)
> I need to checkout a really tree (iow: no untracked files may be
> left in the workdir) from git. ATM I'm removing and recreating the
> whole directory first, but I hope to get rid of this step.

(1) If you have a correctly working "make reallyclean" to remove build
    artifacts, you wouldn't even need such an option.

(2) Have you tried to read up on "git clean -dfqx"?

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

* Re: checkout w/ removing untracked files
  2010-08-18 19:51 ` Junio C Hamano
@ 2010-08-23 12:12   ` Enrico Weigelt
  0 siblings, 0 replies; 3+ messages in thread
From: Enrico Weigelt @ 2010-08-23 12:12 UTC (permalink / raw)
  To: git

* Junio C Hamano <gitster@pobox.com> wrote:
> Enrico Weigelt <weigelt@metux.de> writes:
> 
> > For my Briegel buildsystem (git://pubgit.metux.de/projects/briegel.git/)
> > I need to checkout a really tree (iow: no untracked files may be
> > left in the workdir) from git. ATM I'm removing and recreating the
> > whole directory first, but I hope to get rid of this step.
> 
> (1) If you have a correctly working "make reallyclean" to remove build
>     artifacts, you wouldn't even need such an option.

I can't rely on that. Some of the trees aren't even sourcetrees 
but sysroot images. I need a guaranteed fresh tree w/o any 
user intervention.


> (2) Have you tried to read up on "git clean -dfqx"?

Thanks, that should do it :)


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

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

end of thread, other threads:[~2010-08-23 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-18 19:31 checkout w/ removing untracked files Enrico Weigelt
2010-08-18 19:51 ` Junio C Hamano
2010-08-23 12:12   ` Enrico Weigelt

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).