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>
This commit is contained in:
Petr Baudis
2006-06-24 04:34:36 +02:00
committed by Junio C Hamano
parent 8062f81c2d
commit 63df97ae7b
3 changed files with 27 additions and 2 deletions

View File

@ -23,6 +23,16 @@ PROTOTYPES: DISABLE
# /* TODO: xs_call_gate(). See Git.pm. */
const char *
xs_version()
CODE:
{
RETVAL = GIT_VERSION;
}
OUTPUT:
RETVAL
const char *
xs_exec_path()
CODE: