Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions crates/but/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ pub struct Args {

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

#[derive(Debug, Clone, Copy, clap::ValueEnum, Default)]
pub enum CommandName {
#[clap(alias = "log")]
Log,
#[clap(alias = "st")]
Status,
#[clap(alias = "stf", hide = true)]
Expand Down
10 changes: 1 addition & 9 deletions crates/but/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ mod forge;
mod gui;
mod id;
mod init;
mod log;
mod mark;
mod mcp;
mod mcp_internal;
Expand Down Expand Up @@ -204,13 +203,6 @@ async fn match_subcommand(
metrics_if_configured(app_settings, CommandName::Worktree, props(start, &result)).ok();
result
}
Subcommands::Log => {
let project = get_or_init_project(&args.current_dir)?;
let result = log::commit_graph(&project, args.json);
metrics_if_configured(app_settings, CommandName::Log, props(start, &result)).ok();
result?;
Ok(())
}
Subcommands::Status {
show_files,
verbose,
Expand Down Expand Up @@ -435,7 +427,7 @@ fn print_grouped_help() {

// Define command groupings and their order (excluding MISC)
let groups = [
("Inspection".yellow(), vec!["status", "log"]),
("Inspection".yellow(), vec!["status"]),
(
"Branching and Committing".yellow(),
vec!["commit", "push", "new", "branch", "base", "mark", "unmark"],
Expand Down
Loading