On Wed, Oct 25, 2017 at 9:54 PM, Walter Dnes <[email protected]> wrote:
>
>   Next question... from a git newbie... is there a way to pull down the
> entire "files" directory with patches in one command? gitweb seems to
> delight in using tons of fancy HTML to format a cute layout.

Trying to find deleted files using the web interface is going to be
painful.  Ditto for doing numerous operations at once.

mkdir someplace
cd someplace
git clone https://github.com/gentoo-mirror/gentoo.git .
cd app-emulation/qemu
git whatchanged .

(Scroll down to see the numerous old versions until you find one you
want.  If you find a commit that deletes a file you're interested in
(letter D next to the file), just go down one commit further to find
the most recent version of it.
For this example let's say that we scrolled down and were interested
in "app-emulation/qemu/qemu-2.8.0-r10.ebuild."  This was deleted in
commit 3ebfbe4800b59d6cf81a3a2f4e1a9a2e641343f3.  The commit before
this is fcd530acbc593e4793e7d5b0f5b7ad757de899f8.  (Note that this
wasn't the previous commit for the entire tree, just the last one that
touched anything below the qemu directory, which is just as good since
the later commits don't change anything we care about anyway.)

git checkout fcd530acbc593e4793e7d5b0f5b7ad757de899f8

(You're now sitting in the portage tree as it existed at the time that
qemu-2.8.0-r10.ebuild was around.  That includes everything in files,
the Manifest, and so on.  You can just copy whatever you want to your
overlay or otherwise make use of it.)

The only real downside to this is that the repository is large-ish, at
1.3G right now.

The instructions above will only show data post-git.  You obviously
already know how to view the old CVS files online.  However, you can
also view those in git - there are instructions on the wiki for doing
so.

IMO anybody really interested in FOSS would benefit from learning git.
It is ubiquitous these days.

-- 
Rich

Reply via email to