Skip to content

Commit 1bd751a

Browse files
committed
refactor: Use CARGO_PKG_VERSION for version string
- Replace hardcoded version string with env!("CARGO_PKG_VERSION") - Ensures single source of truth for version (Cargo.toml) - Eliminates risk of version mismatch between Cargo.toml and code
1 parent b5e644d commit 1bd751a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3538,7 +3538,7 @@ Examples:
35383538

35393539
let arg_matches = App::new("git-chain")
35403540
.bin_name(executable_name())
3541-
.version("0.0.10")
3541+
.version(env!("CARGO_PKG_VERSION"))
35423542
.author("Alberto Leal <[email protected]>")
35433543
.about("Tool for rebasing a chain of local git branches.")
35443544
.subcommand(init_subcommand)

0 commit comments

Comments
 (0)