SRobertJames
SRobertJames

Reputation: 9216

Git - Get a code/version identifier for use in log

We run lots of benchmarks against our code as we iterate. These benchmarks are logged and timestamped. But, it's not obvious from the timestamp which version of the code was invoked.

We'd like to have git generate an identifier of the particular version, and have this identifier appear in our log output.

A few challenges:

Upvotes: 1

Views: 44

Answers (1)

Lazy Badger
Lazy Badger

Reputation: 97282

  • Benchmarking of uncommited code is The Bad Idea (tm)
  • Git describe is the easiest way to get unique identification for any and every changeset

Upvotes: 1

Related Questions