rust/tests
Kamal Marhubi 5361f61110 Include git commit and worktree status in version output (#1060)
This will help in debugging issues as rustfmt gets more users.

If the working tree is clean, output looks like

    $ target/debug/rustfmt -V
    0.5.0 (9f5ed3b)

If the working tree is dirty, output looks like

    $ target/debug/rustfmt -V
    0.5.0 (9f5ed3b worktree dirty)

If git is unavailable, output looks like

    $ target/debug/rustfmt -V
    0.5.0 (git commit unavailable)

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.
2016-06-12 10:38:03 +02:00
..
config Format non-statement if-else expressions on a single line 2016-05-29 17:58:38 +02:00
coverage simplify tests 2016-04-05 02:45:39 +03:00
source Merge pull request #1033 from marcusklaas/assignment-break 2016-06-05 18:06:08 +01:00
target Fix integer underflow in extra_offset 2016-06-10 16:17:10 +02:00
writemode simplify tests 2016-04-05 02:45:39 +03:00
system.rs Include git commit and worktree status in version output (#1060) 2016-06-12 10:38:03 +02:00