Here's a git.eclass, it'd be great to see this in portage. This uses and depends on cogito, and I could expand the cogito stuff out into the ebuild if requested. I've been using it for a couple of months now, and it works well for my purposes.
Created attachment 86224 [details] git.eclass
Donnie, you mentioned you had one on the gentoo-dev ML and I think ferdy was working with it a bit.
Yep, I do have one. I've been sort of waiting for somebody who actually has a use for it in the portage tree before adding it, but I guess that sys-kernel/git-sources already could use it.
Donnie, I'd appreciate it in the tree so I can use it for testing some upstream userspace stuff.
Please try the attached git.eclass and report issues. I still think we should repack and even prune the repositories every now in a while, more or less the same a user would do it if he tracked the git repo manually. So I'd appreciate comments and ideas. - ferdy
Created attachment 88895 [details] git.eclass This version gets some fixes from spyderous and uses the new remote config scheme (thus depending on >=dev-util/git-1.4.0).
Perfect, that was a drop-in place replacement for my old cogito/git eclass, and works perfectly with my overlay. Thanks.
Would it be possible to change the eclass so it shows which files were changed on update? (like in the cvs.eclass)
If you change `git-fetch -f -n -u` to `git-pull -f --no-tags -u` does that do it? I think it's the merge that shows changes, not the fetch.
Actually you can do it using 'git diffstat' (which is called by 'merge' which is called by 'pull' :P). Please try the attached version and see if it suits your needs. - ferdy
Created attachment 89324 [details] git.eclass This version shows a diffstat when doing updates.
For anyone using my overlay for this, I've merged in the latest changes.
Suggestion: Change EGIT_PATCHES to PATCHES, because cvs and other eclasses use that as well, makes things more unified.
subversion.eclass uses ESVN_PATCHES and horde.eclass uses EHORDE_PATCHES, there's precedent either way.
Created attachment 96300 [details] git.eclass This version should be ready for inclusion. Adds protocol URI check from Donnie's version and a couple of misc fixes / typos. - ferdy
Looks good to me. Could you post to -dev one last time? Then we'll commit.
This is in the tree now. Thanks for all the comments / fixes / feedback / ... - ferdy