Re: does anything like cvs export exist in git?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Shawn!

Since maven-scm should run under various OS (including Windoof) the tar thingy will not work out.

The second approach is close to my original attempt to simply clone + checkout + rm -rf .git, isn't?.

At least I now know that it's really unlikely that this functionality does exist yet.

txs and LieGrü,
strub



--- Shawn O. Pearce <spearce@xxxxxxxxxxx> schrieb am Do, 14.8.2008:

> Von: Shawn O. Pearce <spearce@xxxxxxxxxxx>
> Betreff: Re: does anything like cvs export exist in git?
> An: "Mark Struberg" <struberg@xxxxxxxx>
> CC: git@xxxxxxxxxxxxxxx
> Datum: Donnerstag, 14. August 2008, 23:26
> Mark Struberg <struberg@xxxxxxxx> wrote:
> > I'm the initial author of the Apache
> maven-scm-providers-git and
> > I need to update our SCM-Matrix.
> > 
> > This is just for making sure I did not oversee
> anything.
> > 
> > I didn't came across anything like 'cvs
> export' and I do not
> > think git really needs this, since it doesn't
> pollute the working
> > directories with lots of waste like CVS and SVN does.
> > 
> > But I just want to make sure to not build workarounds
> in our
> > scm-provider (checkout + afterwards blasting the
> GIT_DIR) for things
> > that do exist natively in git.
> 
> You can use:
> 
>   git archive --tar HEAD | (mkdir ../dest;cd ../dest;tar xf
> -)
> 
> Or you can do something even more bizzare like:
> 
>   export GIT_INDEX_FILE=/tmp/$$.index;
>   export GIT_WORK_TREE=../dest;
>   export GIT_DIR=.git;
>   git read-tree HEAD &&
>   git checkout-index --force --all &&
>   rm $GIT_INDEX_FILE
> 
> -- 
> Shawn.

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux