Skip to content

Commit 2acf4f9

Browse files
committed
Remove 'log' command and related code
The 'log' subcommand and its CommandName variant were removed along with the module and handling in lib.rs because the project no longer supports or needs a separate 'but log' command. This cleans up the CLI enum, command dispatch, module imports, and help groupings to reflect that 'status' is now the sole inspection command.
1 parent fe1d543 commit 2acf4f9

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

crates/but/src/args.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ pub struct Args {
2727

2828
#[derive(Debug, clap::Subcommand)]
2929
pub enum Subcommands {
30-
/// Show commits on active branches in your workspace.
31-
Log,
3230
/// Overview of the uncommitted changes in the repository.
3331
#[clap(alias = "st")]
3432
Status {
@@ -196,8 +194,6 @@ For examples see `but rub --help`."
196194

197195
#[derive(Debug, Clone, Copy, clap::ValueEnum, Default)]
198196
pub enum CommandName {
199-
#[clap(alias = "log")]
200-
Log,
201197
#[clap(alias = "st")]
202198
Status,
203199
#[clap(alias = "stf", hide = true)]

crates/but/src/lib.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ mod forge;
2222
mod gui;
2323
mod id;
2424
mod init;
25-
mod log;
2625
mod mark;
2726
mod mcp;
2827
mod mcp_internal;
@@ -204,13 +203,6 @@ async fn match_subcommand(
204203
metrics_if_configured(app_settings, CommandName::Worktree, props(start, &result)).ok();
205204
result
206205
}
207-
Subcommands::Log => {
208-
let project = get_or_init_project(&args.current_dir)?;
209-
let result = log::commit_graph(&project, args.json);
210-
metrics_if_configured(app_settings, CommandName::Log, props(start, &result)).ok();
211-
result?;
212-
Ok(())
213-
}
214206
Subcommands::Status {
215207
show_files,
216208
verbose,
@@ -435,7 +427,7 @@ fn print_grouped_help() {
435427

436428
// Define command groupings and their order (excluding MISC)
437429
let groups = [
438-
("Inspection".yellow(), vec!["status", "log"]),
430+
("Inspection".yellow(), vec!["status"]),
439431
(
440432
"Branching and Committing".yellow(),
441433
vec!["commit", "push", "new", "branch", "base", "mark", "unmark"],

0 commit comments

Comments
 (0)