semi-useful git perl file

From: Joshua T. Corbin <hidden>
Date: 2016-06-15 22:41:55

I've been playing around with driving git from perl land. The attached
allows you to easily access git objects from perl as:

	tie %git, 'GIT::ObjectDB';
	print Dumper( $git{ $commit_id } );

Looks like:
{
	type    => 'commit',
	sha     => $commit_id,
	tree    => '0000000000000000000000000000000000000000',
	parents => [ ... ],
	mess    => "\nbla bla bla\n"
}

And corresponding for trees, tags, and blobs.

If you want to see use of this in action, you can pull my (incomplete)
translation of cogito into perl from:

	http://node1.wunjo.org/~jcorbin/yagf.git

	or

	rsync://node1.wunjo.org/yagf.git

Josh

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help