does anything like cvs export exist in 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
Quoted 5 lines · Mark Struberg
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.
Quoted 7 lines
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
Signature · 1 line
Shawn.
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 <[email protected]> schrieb am Do, 14.8.2008:
Quoted 30 lines
Von: Shawn O. Pearce <[email protected]>
Betreff: Re: does anything like cvs export exist in git?
An: "Mark Struberg" <[email protected]>
CC: [email protected]
Datum: Donnerstag, 14. August 2008, 23:26Quoted 1 line · Mark Struberg
I'm the initial author of the Apache
maven-scm-providers-git and
Quoted 3 lines
I need to update our SCM-Matrix.
This is just for making sure I did not oversee
anything.
Quoted 2 lines
I didn't came across anything like 'cvs
export' and I do not
Quoted 1 line
think git really needs this, since it doesn't
pollute the working
Quoted 3 lines
directories with lots of waste like CVS and SVN does.
But I just want to make sure to not build workarounds
in our
Quoted 1 line
scm-provider (checkout + afterwards blasting the
GIT_DIR) for thingsQuoted 1 line
that do exist natively in git.
You can use:
git archive --tar HEAD | (mkdir ../dest;cd ../dest;tar xf
-)
Quoted 11 lines
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_FILESignature · 1 line
Shawn.
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
Quoted 2 lines · Mark Struberg
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.
Quoted 2 lines
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.
Quoted 2 lines
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.
Quoted 39 lines
--- Shawn O. Pearce <[email protected]> schrieb am Do, 14.8.2008:
Quoted 38 lines
Von: Shawn O. Pearce <[email protected]>
Betreff: Re: does anything like cvs export exist in git?
An: "Mark Struberg" <[email protected]>
CC: [email protected]
Datum: Donnerstag, 14. August 2008, 23:26Quoted 1 line · Mark Struberg
I'm the initial author of the Apache
maven-scm-providers-git and
Quoted 3 lines
I need to update our SCM-Matrix.
This is just for making sure I did not oversee
anything.
Quoted 2 lines
I didn't came across anything like 'cvs
export' and I do not
Quoted 1 line
think git really needs this, since it doesn't
pollute the working
Quoted 3 lines
directories with lots of waste like CVS and SVN does.
But I just want to make sure to not build workarounds
in our
Quoted 1 line
scm-provider (checkout + afterwards blasting the
GIT_DIR) for thingsQuoted 1 line
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
Signature · 1 line
Shawn.
Hi Shawn!
--- Shawn O. Pearce <[email protected]> schrieb am Fr, 15.8.2008:
Quoted 6 lines
Von: Shawn O. Pearce <[email protected]>
Betreff: Re: does anything like cvs export exist in git?
An: "Mark Struberg" <[email protected]>
CC: [email protected]
Datum: Freitag, 15. August 2008, 0:12
Mark Struberg <[email protected]> wrote:
Quoted 7 lines
Quoted 1 line
Since maven-scm should run under various OS (including
Windoof)
Quoted 1 line
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 ;)
Quoted 6 lines
Quoted 2 lines
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
Hi,
Quoted 6 lines · Mark Struberg
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
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 <[email protected]> schrieb am Fr, 15.8.2008:
Quoted 21 lines
Von: Petr Baudis <[email protected]>
Betreff: Re: does anything like cvs export exist in git?
An: "Mark Struberg" <[email protected]>
CC: [email protected]
Datum: Freitag, 15. August 2008, 0:11
Hi,Quoted 1 line · Mark Struberg
I'm the initial author of the Apache
maven-scm-providers-git and I need to update our SCM-Matrix.
Quoted 2 lines
This is just for making sure I did not oversee
anything.
Quoted 2 lines
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.
Quoted 1 line
But I just want to make sure to not build workarounds
Quoted 8 lines
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
Quoted 1 line · Mark Struberg
This is just for making sure I did not oversee anything.
Did you look at git archive?
Signature · 1 line
Matthieu
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 <[email protected]> schrieb am Do, 14.8.2008:
Quoted 7 lines
Von: Matthieu Moy <[email protected]>
Betreff: Re: does anything like cvs export exist in git?
An: "Mark Struberg" <[email protected]>
CC: [email protected]
Datum: Donnerstag, 14. August 2008, 23:23
Mark Struberg <[email protected]> writes:
Quoted 7 lines
Quoted 1 line
This is just for making sure I did not oversee
anything.
Did you look at git archive?
Signature · 1 line
Matthieu
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com