Skip to content

Commit 8a0429e

Browse files
committed
chore: ready to release 0.4
1 parent 34465bd commit 8a0429e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ fn exec_git(args: &[&str]) -> Result<String, Box<dyn Error>> {
2323
}
2424

2525
fn fetch_git_info() -> Result<(), Box<dyn Error>> {
26-
let describe = match exec_git(&["describe", "--tags"]) {
27-
Ok(d) => d,
28-
Err(_) => String::from("unknown"),
29-
};
26+
let describe = exec_git(&["describe", "--tags"]).unwrap_or_default();
3027
let sha = exec_git(&["rev-parse", "HEAD"])?;
3128
let short_sha = exec_git(&["rev-parse", "--short", "HEAD"])?;
3229

@@ -42,6 +39,8 @@ fn fetch_git_info() -> Result<(), Box<dyn Error>> {
4239
} else {
4340
(cargo_version.to_string(), "stable")
4441
}
42+
} else if describe.is_empty() {
43+
(cargo_version.to_string(), "stable")
4544
} else {
4645
(format!("{cargo_version}-dev_{short_sha}"), "dev")
4746
};

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### Features
44

55
- Command: Add new flag `--debug`, to write some debug logs to a file.
6+
- UI: Add `--live-reload` option, to watch file changes and update tui (#63).
67

78
## v0.3.0
89

0 commit comments

Comments
 (0)