diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2020-01-30 19:07:24 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2020-01-31 20:59:21 +0100 |
commit | c029c8ff89b3567ef2fde8f238add57bf1314423 (patch) | |
tree | 6c38723a4465d83220d0b0549fcbd388e80f9a48 /etc | |
parent | d83309493ff8d596e6c6d6776111a815dc0da257 (diff) | |
download | spack-c029c8ff89b3567ef2fde8f238add57bf1314423.tar.gz spack-c029c8ff89b3567ef2fde8f238add57bf1314423.tar.bz2 spack-c029c8ff89b3567ef2fde8f238add57bf1314423.tar.xz spack-c029c8ff89b3567ef2fde8f238add57bf1314423.zip |
`spack -V` is now more descriptive for dev branches
`spack -V` previously always returned the version of spack from
`spack.spack_version`. This gives us a general idea of what version
users are on, but if they're on `develop` or on some branch, we have to
ask more questions.
This PR makes `spack -V` check whether this instance of Spack is a git
repository, and if it is, it appends useful information from `git
describe --tags` to the version. Specifically, it adds:
- number of commits since the last release tag
- abbreviated (but unique) commit hash
So, if you're on `develop` you might get something like this:
$ spack -V
0.13.3-912-3519a1762
This means you're on commit 3519a1762, which is 912 commits ahead of
the 0.13.3 release.
If you are on a release branch, or if you are using a tarball of Spack,
you'll get the usual `spack.spack_version`:
$ spack -V
0.13.3
This should help when asking users what version they are on, since a lot
of people use the `develop` branch.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions