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:
committed by
Junio C Hamano
parent
8062f81c2d
commit
63df97ae7b
10
perl/Git.xs
10
perl/Git.xs
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user