Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: ccc1188fa34cd9519185a22b13599256ccfac7e1 authored by Junio C Hamano on 24 July 2012, 04:02:06 UTC
Git 1.7.12-rc0
Tip revision: ccc1188
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