Skip to content

Commit 3cf7a81

Browse files
hlsxxextrawurst
andauthored
feat: build.rs version message (#2839)
* feat: build.rs version message * doc: changelog --------- Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
1 parent b18becd commit 3cf7a81

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## Unreleased
99

1010
### Changed
11+
<<<<<<< feat/version-message
12+
* improve `gitui --version` message [[@hlsxx](https://github.com/hlsxx)] ([#2838](https://github.com/gitui-org/gitui/issues/2838))
13+
=======
1114
* rust msrv bumped to `1.88`
1215

1316
### Fixed
1417
* fix panic when renaming or updating remote URL with no remotes configured [[@xvchris](https://github.com/xvchris)] ([#2868](https://github.com/gitui-org/gitui/issues/2868))
18+
>>>>>>> master
1519
1620
## [0.28.0] - 2025-12-14
1721

build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ fn main() {
3434
let build_date = now.date_naive();
3535

3636
let build_name = if std::env::var("GITUI_RELEASE").is_ok() {
37+
env!("CARGO_PKG_VERSION").to_string()
38+
} else {
3739
format!(
38-
"{} {} ({})",
40+
"{}-nightly {} ({})",
3941
env!("CARGO_PKG_VERSION"),
4042
build_date,
4143
get_git_hash()
4244
)
43-
} else {
44-
format!("nightly {} ({})", build_date, get_git_hash())
4545
};
4646

4747
println!("cargo:warning=buildname '{build_name}'");

0 commit comments

Comments
 (0)