feat: build.rs version message (#2839)

* feat: build.rs version message

* doc: changelog

---------

Co-authored-by: extrawurst <776816+extrawurst@users.noreply.github.com>
This commit is contained in:
hlsxx 2026-03-20 01:35:21 +01:00 committed by GitHub
parent b18becdec6
commit 3cf7a818d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -8,10 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Changed
<<<<<<< feat/version-message
* improve `gitui --version` message [[@hlsxx](https://github.com/hlsxx)] ([#2838](https://github.com/gitui-org/gitui/issues/2838))
=======
* rust msrv bumped to `1.88`
### Fixed
* 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))
>>>>>>> master
## [0.28.0] - 2025-12-14

View file

@ -34,14 +34,14 @@ fn main() {
let build_date = now.date_naive();
let build_name = if std::env::var("GITUI_RELEASE").is_ok() {
env!("CARGO_PKG_VERSION").to_string()
} else {
format!(
"{} {} ({})",
"{}-nightly {} ({})",
env!("CARGO_PKG_VERSION"),
build_date,
get_git_hash()
)
} else {
format!("nightly {} ({})", build_date, get_git_hash())
};
println!("cargo:warning=buildname '{build_name}'");