@@ -16,8 +16,8 @@ use gix::bstr::{io::BufReadExt, BString};
1616use crate :: {
1717 plumbing:: {
1818 options:: {
19- attributes, commit, commitgraph, config, credential, exclude, free, fsck, index, mailmap, merge, odb ,
20- revision, tag, tree, Args , Subcommands ,
19+ attributes, branch , commit, commitgraph, config, credential, exclude, free, fsck, index, mailmap, merge,
20+ odb , revision, tag, tree, Args , Subcommands ,
2121 } ,
2222 show_progress,
2323 } ,
@@ -509,6 +509,26 @@ pub fn main() -> Result<()> {
509509 )
510510 } ,
511511 ) ,
512+ Subcommands :: Branch ( platform) => match platform. cmd {
513+ branch:: Subcommands :: List { all } => {
514+ use core:: repository:: branch:: list;
515+
516+ let kind = if all { list:: Kind :: All } else { list:: Kind :: Local } ;
517+ let options = list:: Options { kind } ;
518+
519+ prepare_and_run (
520+ "branch-list" ,
521+ trace,
522+ auto_verbose,
523+ progress,
524+ progress_keep_open,
525+ None ,
526+ move |_progress, out, _err| {
527+ core:: repository:: branch:: list ( repository ( Mode :: Lenient ) ?, out, format, options)
528+ } ,
529+ )
530+ }
531+ } ,
512532 #[ cfg( feature = "gitoxide-core-tools-corpus" ) ]
513533 Subcommands :: Corpus ( crate :: plumbing:: options:: corpus:: Platform { db, path, cmd } ) => {
514534 let reverse_trace_lines = progress;
0 commit comments