userland/git: --version and commit --no-gpg-sign (no-op)

This commit is contained in:
2026-11-06 16:57:38 +00:00
parent 4df2c2e837
commit afff3ccda5
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -1,6 +1,10 @@
//! Parse Git CLI arguments and return Git-compatible usage and operation exit codes.
use clap::{Parser, error::ErrorKind};
fn main() {
if matches!(std::env::args().nth(1).as_deref(), Some("--version" | "version")) {
println!("git version {}.sausage", env!("CARGO_PKG_VERSION"));
exit(0);
}
let cli = match git::Cli::try_parse() {
Ok(cli) => cli,
Err(error) => {