From: Julian Phillips Date: Thu, 08 May 2008 00:16:26 GMT Subject: Re: help with git usage Message-ID: In-Reply-To: <200805072242.m47Mg1o0015578@rs40.luxsci.com> On Wed, 7 May 2008, Daniel Quinlan wrote: > I'm looking for a way to embed some identifying information about > version > into compiled programs. I hasten to add that I am not looking to > expand RCS-like > tags. Unlike CVS/RCS, git provides a single value that characterizes > the whole > distribution, at least if everything is committed. So, something like > "git log | head -1 | awk '{print $2}'" > probably provides a value which I can embed into executables and > libraries, tying > them to a particular source configuration. I'm just curious if > there's a better approach > to getting the commit hash. something like "git show-ref -s HEAD" perhaps? -- Julian --- The Kennedy Constant: Don't get mad -- get even.