Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] [RFC] Introduce Git.pm

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:30

Petr Baudis [off-list ref] writes:
This patch introduces a very basic and barebone Git.pm module
with a sketch of how the generic interface would look like;
In addition to my previous comments...
+  my $version = Git::generic_oneval('version');
+  my $lastrev = $repo->generic_oneval('rev-list', '--all');
+...
+=item generic_oneline ( COMMAND [, ARGUMENTS... ] )
+...
+sub generic_oneline {
+	my $fh = generic(@_);
+	my $line = <$fh>;
+	close $fh;
+	chomp $line;
+	return $line;
+}
Let's have a cleaned up version of Git.pm, Makefile changes and
changes to git-fmt-merge-msg.perl that shows how to use the
module.  Being in-tree would help people to view, use and
comment on it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help