Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: git-2.eclass final review
Date: Tue, 22 Mar 2011 23:56:10
Message-Id: AANLkTinnnPa-oAaK4QJVr5deGHTuSpMg0qtOgqWYugEi@mail.gmail.com
In Reply to: [gentoo-dev] Re: git-2.eclass final review by Ryan Hill
1 On Tue, Mar 22, 2011 at 7:41 PM, Ryan Hill wrote:
2 > On Tue, 22 Mar 2011 19:08:53 -0400 Mike Frysinger wrote:
3 >> > rsync -rlpgo . "${EGIT_SOURCEDIR}" \
4 >>
5 >> this means you need to have DEPEND="net-misc/rsync".  why not just use
6 >> `cp -pPR` instead ?  i vaguely recall rsync being slower than a
7 >> straight cp too ... not much point of doing a rsync when the vast
8 >> majority of the time (all the time?) the destination is empty.
9 >
10 > i think i remember doing some time tests using a tar pipe at one point with
11 > subversion.eclass that blew cp out of the water.
12 >
13 > tar -cf - . | tar -xf - -C "${EGIT_SOURCEDIR}"
14 >
15 > might be worth looking at.
16
17 ideally, the git eclass should be creating bare checkouts only in its
18 store dir, in which case it could use `git archive | tar` to move
19 things over ...
20 -mike

Replies

Subject Author
Re: [gentoo-dev] Re: git-2.eclass final review James Cloos <cloos@×××××××.com>