#version-control #cargo-version #cargo-check #control-system #clean #error #safety

version-control-clean-check

Checks if the version control is clean. Based on code from Cargo.

5 releases

new 0.1.3 Dec 7, 2024
0.1.2 Apr 17, 2024
0.1.1 Feb 20, 2024
0.1.0 Nov 5, 2023
0.0.0 Nov 2, 2023

#1283 in Development tools

Download history 55/week @ 2024-08-17 43/week @ 2024-08-24 45/week @ 2024-08-31 76/week @ 2024-09-07 67/week @ 2024-09-14 100/week @ 2024-09-21 95/week @ 2024-09-28 66/week @ 2024-10-05 98/week @ 2024-10-12 71/week @ 2024-10-19 66/week @ 2024-10-26 76/week @ 2024-11-02 26/week @ 2024-11-09 80/week @ 2024-11-16 82/week @ 2024-11-23 46/week @ 2024-11-30

248 downloads per month
Used in zola_chrono

MIT/Apache

12KB
141 lines

version-control-clean-check

Checks the status of the version control system. Based on cargo's check_version_control. In cargo it is used as a safety check before possibly destructive changes are done like running cargo fix.

Display Messages for Errors

Display messages for errors are meant to be human readable and as such are not considered a breaking change if they are changed for clarity.

Tests

The test create a folder inside of tests/ and sets up sub folders as expected by the tests. The setup process is skipped if the sub folder already exists. It does not check if the folder is setup properly but instead just ASSUMES that it is correct. If you are unsure if the sub folders are setup correctly simply remove tests/test_folders and it will be recreated correctly when the tests are run.

NB: The folder is not deleted upon completion of the tests but is instead left behind for reuse.

License

All code in this repository is dual-licensed under either:

  • Apache License, Version 2.0
  • MIT license

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both as noted in this issue on Bevy's repo.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~18–30MB
~536K SLoC