summaryrefslogtreecommitdiff
path: root/perl/Git.xs
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-06-24 04:34:36 +0200
committerJunio C Hamano <junkio@cox.net>2006-07-02 17:14:40 -0700
commit63df97ae7baeedc3ce04995139fa0f6bc5eea76c (patch)
tree370d65f4f594a3f551f55f6db7baec094664398c /perl/Git.xs
parent8062f81c2d9df5e6552bf267b258ffcc5f647f93 (diff)
downloadgit-63df97ae7baeedc3ce04995139fa0f6bc5eea76c.tar.gz
Git.pm: Implement Git::version()
Git::version() returns the Git version string. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'perl/Git.xs')
-rw-r--r--perl/Git.xs10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl/Git.xs b/perl/Git.xs
index 6478f9c77f..d4608eb1cb 100644
--- a/perl/Git.xs
+++ b/perl/Git.xs
@@ -24,6 +24,16 @@ PROTOTYPES: DISABLE
const char *
+xs_version()
+CODE:
+{
+ RETVAL = GIT_VERSION;
+}
+OUTPUT:
+ RETVAL
+
+
+const char *
xs_exec_path()
CODE:
{