Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 889d35899ba64640e47798681ecb34a4be043bad authored by Junio C Hamano on 20 August 2012, 00:02:11 UTC
Git 1.7.12
Tip revision: 889d358
version.c
#include "git-compat-util.h"
#include "version.h"

const char git_version_string[] = GIT_VERSION;

const char *git_user_agent(void)
{
	static const char *agent = NULL;

	if (!agent) {
		agent = getenv("GIT_USER_AGENT");
		if (!agent)
			agent = GIT_USER_AGENT;
	}

	return agent;
}
back to top