[Vm-dev] About VM version string

Bert Freudenberg bert at freudenbergs.de
Tue Apr 12 16:07:56 UTC 2011


On 12.04.2011, at 17:47, David T. Lewis wrote:

> On Tue, Apr 12, 2011 at 05:32:17PM +0200, Mariano Martinez Peck wrote:
>> 
>> On Tue, Apr 12, 2011 at 1:58 PM, David T. Lewis <lewis at mail.msen.com> wrote:
>>> 
>>> For the platforms sources on the git mirror with CMMakerVMMaker
>>> build, some mechanism would be needed to identify version level.
>>> Ian's build procedure on unix with Subversion works well for
>>> this, but I don't know how to do the equivalent on the git
>>> mirror. But I'm not really familiar with git, so hopefully
>>> someone can suggest something here.
>>> 
>>> 
>> For SVN you have the versions. Let say 2023. In Git, each commit has a
>> commit hash, which looks something like:
>> f3fe94c828f66cd0e7c37cfa3434e384ff65915e
>> 
>> However, only the 4 first characters are usually enough to specify a
>> version. So for example in Git you can do:
>> 
>> git checkout 1af7478875b2d534c3b6cdc89d8244ff3ea4ec65
>> 
>> or
>> 
>> git checkout 1af7
>> 
>> So...we can have the same as the SVN if we want.
>> 
> 
> Great - thank you! I was hoping somebody would know how to do this.
> 
> Dave

While a few digits work fine interactively, you would have to use the full hash to uniquely identify a version.

- Bert -



More information about the Vm-dev mailing list