2

What I'm up to is to have an ability to tell a changeset which was used to build an assembly.

With Subversion it's all nice and simple: embed repository revision number straight into assembly version (like 1.0.5873 with 5873 being revision number).

DVCSes, however, do not have reliable human-readable revision numbers but they do have changesets which are long hexadecimal strings. Those obviously don't fit into any version number.

So the question is: what's the current best practice to version such assemblies?

Anton Gogolev
  • 110,157
  • 37
  • 194
  • 282

1 Answers1

1

Usually, you would use git describe to get that kind of human-readable information.

As illustrations, see:

Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755