vcs-modify-guard 0.1.0

A library for checking whether it is safe to modify files in a VCS worktree.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pre-release-replacements = [
  { file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}" },
  { file = "CHANGELOG.md", search = "/commits/HEAD", replace = "/commits/{{tag_name}}", min = 0, max = 1 },
  { file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}", min = 0, max = 1 },
  { file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}" },
  { file = "CHANGELOG.md", search = "<!-- next-header -->", replace = "<!-- next-header -->\n\n## [Unreleased] - ReleaseDate", exactly = 1 },
  { file = "CHANGELOG.md", search = "<!-- next-url -->", replace = "<!-- next-url -->\n[Unreleased]: https://github.com/gifnksm/vcs-modify-guard/compare/{{tag_name}}...HEAD", exactly = 1 },
  { file = "README.md", search = "vcs-modify-guard = \\{\n  version = \".*\",$", replace = "vcs-modify-guard = {\n  version = \"{{version}}\",", exactly = 1 },
  { file = "src/lib.rs", search = "^//! vcs-modify-guard = \\{\n//!   version = \".*\",$", replace = "//! vcs-modify-guard = {\n//!   version = \"{{version}}\",", exactly = 1 },
  { file = "src/lib.rs", search = "^#!\\[doc\\(html_root_url = \"https://docs.rs/vcs-modify-guard/.*\"\\)\\]$", replace = "#![doc(html_root_url = \"https://docs.rs/vcs-modify-guard/{{version}}\")]", exactly = 1 },
]
pre-release-hook = ["just", "pre-release"]