Gentoo Archives: gentoo-user

From: Rich Freeman <rich0@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Where can I find "recent" qemu out-of-tree ebuild
Date: Thu, 26 Oct 2017 11:40:42
Message-Id: CAGfcS_mTBr1i=5b4wnuvwUCBjkK7b+eL_LE-=gh-V1e8ijt3hg@mail.gmail.com
In Reply to: Re: [gentoo-user] Where can I find "recent" qemu out-of-tree ebuild by Walter Dnes
1 On Wed, Oct 25, 2017 at 9:54 PM, Walter Dnes <waltdnes@××××××××.org> wrote:
2 >
3 > Next question... from a git newbie... is there a way to pull down the
4 > entire "files" directory with patches in one command? gitweb seems to
5 > delight in using tons of fancy HTML to format a cute layout.
6
7 Trying to find deleted files using the web interface is going to be
8 painful. Ditto for doing numerous operations at once.
9
10 mkdir someplace
11 cd someplace
12 git clone https://github.com/gentoo-mirror/gentoo.git .
13 cd app-emulation/qemu
14 git whatchanged .
15
16 (Scroll down to see the numerous old versions until you find one you
17 want. If you find a commit that deletes a file you're interested in
18 (letter D next to the file), just go down one commit further to find
19 the most recent version of it.
20 For this example let's say that we scrolled down and were interested
21 in "app-emulation/qemu/qemu-2.8.0-r10.ebuild." This was deleted in
22 commit 3ebfbe4800b59d6cf81a3a2f4e1a9a2e641343f3. The commit before
23 this is fcd530acbc593e4793e7d5b0f5b7ad757de899f8. (Note that this
24 wasn't the previous commit for the entire tree, just the last one that
25 touched anything below the qemu directory, which is just as good since
26 the later commits don't change anything we care about anyway.)
27
28 git checkout fcd530acbc593e4793e7d5b0f5b7ad757de899f8
29
30 (You're now sitting in the portage tree as it existed at the time that
31 qemu-2.8.0-r10.ebuild was around. That includes everything in files,
32 the Manifest, and so on. You can just copy whatever you want to your
33 overlay or otherwise make use of it.)
34
35 The only real downside to this is that the repository is large-ish, at
36 1.3G right now.
37
38 The instructions above will only show data post-git. You obviously
39 already know how to view the old CVS files online. However, you can
40 also view those in git - there are instructions on the wiki for doing
41 so.
42
43 IMO anybody really interested in FOSS would benefit from learning git.
44 It is ubiquitous these days.
45
46 --
47 Rich

Replies

Subject Author
Re: [gentoo-user] Where can I find "recent" qemu out-of-tree ebuild Walter Dnes <waltdnes@××××××××.org>