* does anything like cvs export exist in git?
@ 2008-08-14 21:20 Mark Struberg
2008-08-14 21:23 ` Matthieu Moy
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Mark Struberg @ 2008-08-14 21:20 UTC (permalink / raw)
To: git
Hi!
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.
txs in advance and
LieGrü,
strub
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: does anything like cvs export exist in git?
2008-08-14 21:20 does anything like cvs export exist in git? Mark Struberg
@ 2008-08-14 21:23 ` Matthieu Moy
2008-08-14 21:46 ` Mark Struberg
2008-08-14 21:26 ` Shawn O. Pearce
2008-08-14 22:11 ` Petr Baudis
2 siblings, 1 reply; 9+ messages in thread
From: Matthieu Moy @ 2008-08-14 21:23 UTC (permalink / raw)
To: Mark Struberg; +Cc: git
Mark Struberg <struberg@yahoo.de> writes:
> This is just for making sure I did not oversee anything.
Did you look at git archive?
--
Matthieu
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: does anything like cvs export exist in git?
2008-08-14 21:20 does anything like cvs export exist in git? Mark Struberg
2008-08-14 21:23 ` Matthieu Moy
@ 2008-08-14 21:26 ` Shawn O. Pearce
2008-08-14 22:09 ` Mark Struberg
2008-08-14 22:11 ` Petr Baudis
2 siblings, 1 reply; 9+ messages in thread
From: Shawn O. Pearce @ 2008-08-14 21:26 UTC (permalink / raw)
To: Mark Struberg; +Cc: git
Mark Struberg <struberg@yahoo.de> 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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: does anything like cvs export exist in git?
2008-08-14 21:23 ` Matthieu Moy
@ 2008-08-14 21:46 ` Mark Struberg
0 siblings, 0 replies; 9+ messages in thread
From: Mark Struberg @ 2008-08-14 21:46 UTC (permalink / raw)
To: Matthieu Moy; +Cc: git
Txs Matthieu, but unfortunately git-archive only knows the formats tar and zip, but no 'files' or whatever we may call it.
txs anyway,
mark
--- Matthieu Moy <Matthieu.Moy@imag.fr> schrieb am Do, 14.8.2008:
> Von: Matthieu Moy <Matthieu.Moy@imag.fr>
> Betreff: Re: does anything like cvs export exist in git?
> An: "Mark Struberg" <struberg@yahoo.de>
> CC: git@vger.kernel.org
> Datum: Donnerstag, 14. August 2008, 23:23
> Mark Struberg <struberg@yahoo.de> writes:
>
> > This is just for making sure I did not oversee
> anything.
>
> Did you look at git archive?
>
> --
> Matthieu
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: does anything like cvs export exist in git?
2008-08-14 21:26 ` Shawn O. Pearce
@ 2008-08-14 22:09 ` Mark Struberg
2008-08-14 22:12 ` Shawn O. Pearce
0 siblings, 1 reply; 9+ messages in thread
From: Mark Struberg @ 2008-08-14 22:09 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git
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@spearce.org> schrieb am Do, 14.8.2008:
> Von: Shawn O. Pearce <spearce@spearce.org>
> Betreff: Re: does anything like cvs export exist in git?
> An: "Mark Struberg" <struberg@yahoo.de>
> CC: git@vger.kernel.org
> Datum: Donnerstag, 14. August 2008, 23:26
> Mark Struberg <struberg@yahoo.de> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: does anything like cvs export exist in git?
2008-08-14 21:20 does anything like cvs export exist in git? Mark Struberg
2008-08-14 21:23 ` Matthieu Moy
2008-08-14 21:26 ` Shawn O. Pearce
@ 2008-08-14 22:11 ` Petr Baudis
2008-08-14 22:31 ` Mark Struberg
2 siblings, 1 reply; 9+ messages in thread
From: Petr Baudis @ 2008-08-14 22:11 UTC (permalink / raw)
To: Mark Struberg; +Cc: git
Hi,
On Thu, Aug 14, 2008 at 09:20:10PM +0000, Mark Struberg 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.
I'm not sure what exactly do you want, but couldn't you abuse
git-cvsserver for the job?
Petr "Pasky" Baudis
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: does anything like cvs export exist in git?
2008-08-14 22:09 ` Mark Struberg
@ 2008-08-14 22:12 ` Shawn O. Pearce
2008-08-14 22:44 ` Mark Struberg
0 siblings, 1 reply; 9+ messages in thread
From: Shawn O. Pearce @ 2008-08-14 22:12 UTC (permalink / raw)
To: Mark Struberg; +Cc: git
Mark Struberg <struberg@yahoo.de> wrote:
> Since maven-scm should run under various OS (including Windoof)
> the tar thingy will not work out.
OK. Maven could also consider using JGit, since its pure Java
and thus just as portable as the JRE is.
> The second approach is close to my original attempt to simply
> clone + checkout + rm -rf .git, isn't?.
Yes, but relies on a few plumbing level tricks to avoid the time
consuming aspects of a clone.
> At least I now know that it's really unlikely that this
> functionality does exist yet.
Its not implemented for a reason; we suggest to users to use
git-archive when they need to export a tree outside of Git.
> --- Shawn O. Pearce <spearce@spearce.org> schrieb am Do, 14.8.2008:
> > Von: Shawn O. Pearce <spearce@spearce.org>
> > Betreff: Re: does anything like cvs export exist in git?
> > An: "Mark Struberg" <struberg@yahoo.de>
> > CC: git@vger.kernel.org
> > Datum: Donnerstag, 14. August 2008, 23:26
> > Mark Struberg <struberg@yahoo.de> 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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: does anything like cvs export exist in git?
2008-08-14 22:11 ` Petr Baudis
@ 2008-08-14 22:31 ` Mark Struberg
0 siblings, 0 replies; 9+ messages in thread
From: Mark Struberg @ 2008-08-14 22:31 UTC (permalink / raw)
To: Petr Baudis; +Cc: git
Hi Petr!
basically a good idea, but git-cvsserver hast to be run as a _server_, so this is not an option here :(
txs anyway,
mark
--- Petr Baudis <pasky@suse.cz> schrieb am Fr, 15.8.2008:
> Von: Petr Baudis <pasky@suse.cz>
> Betreff: Re: does anything like cvs export exist in git?
> An: "Mark Struberg" <struberg@yahoo.de>
> CC: git@vger.kernel.org
> Datum: Freitag, 15. August 2008, 0:11
> Hi,
>
> On Thu, Aug 14, 2008 at 09:20:10PM +0000, Mark Struberg
> 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.
>
> I'm not sure what exactly do you want, but
> couldn't you abuse
> git-cvsserver for the job?
>
> Petr "Pasky" Baudis
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: does anything like cvs export exist in git?
2008-08-14 22:12 ` Shawn O. Pearce
@ 2008-08-14 22:44 ` Mark Struberg
0 siblings, 0 replies; 9+ messages in thread
From: Mark Struberg @ 2008-08-14 22:44 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git
Hi Shawn!
--- Shawn O. Pearce <spearce@spearce.org> schrieb am Fr, 15.8.2008:
> Von: Shawn O. Pearce <spearce@spearce.org>
> Betreff: Re: does anything like cvs export exist in git?
> An: "Mark Struberg" <struberg@yahoo.de>
> CC: git@vger.kernel.org
> Datum: Freitag, 15. August 2008, 0:12
> Mark Struberg <struberg@yahoo.de> wrote:
> > Since maven-scm should run under various OS (including
> Windoof)
> > the tar thingy will not work out.
>
> OK. Maven could also consider using JGit, since its pure
> Java
> and thus just as portable as the JRE is.
I looked at JGit when I started implementation back in October last year but it wasn't rdy then. This is definitely on my list, and the whole project is already setup to support both, a native plus a Java implementation. But just one step after the other, I'd like to help finishing the german git manpages first ;)
> > At least I now know that it's really unlikely that this
> > functionality does exist yet.
>
> Its not implemented for a reason; we suggest to users to
> use
> git-archive when they need to export a tree outside of Git.
Yup, this is completely ok from a git perspective, but maven-scm aims to deliver the same result for each SCM system. And since cvs has been first...
Also, export is not very important (and also not time critical), all really important functions already work fine.
txs and LieGrü,
strub
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-08-14 22:45 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-14 21:20 does anything like cvs export exist in git? Mark Struberg
2008-08-14 21:23 ` Matthieu Moy
2008-08-14 21:46 ` Mark Struberg
2008-08-14 21:26 ` Shawn O. Pearce
2008-08-14 22:09 ` Mark Struberg
2008-08-14 22:12 ` Shawn O. Pearce
2008-08-14 22:44 ` Mark Struberg
2008-08-14 22:11 ` Petr Baudis
2008-08-14 22:31 ` Mark Struberg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.