Include git commit and worktree status in version output #1060
+85
−5
|
I suggest testing this yourself before merging. You can check it out with |
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will help in debugging issues as rustfmt gets more users.
If the working tree is clean, output looks like
If the working tree is dirty, output looks like
If git is unavailable, output looks like
To avoid rebuilds on changing tests, the build script will only rerun if
files under src/ are changed. This means the actual git status may show
changed files and this would not show up in the version. This should not
be an issue as files not in src/ should not affect the build output.