@@ -16,8 +16,8 @@ use gix::bstr::{io::BufReadExt, BString};
16
16
use crate :: {
17
17
plumbing:: {
18
18
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 ,
21
21
} ,
22
22
show_progress,
23
23
} ,
@@ -509,6 +509,26 @@ pub fn main() -> Result<()> {
509
509
)
510
510
} ,
511
511
) ,
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
+ } ,
512
532
#[ cfg( feature = "gitoxide-core-tools-corpus" ) ]
513
533
Subcommands :: Corpus ( crate :: plumbing:: options:: corpus:: Platform { db, path, cmd } ) => {
514
534
let reverse_trace_lines = progress;
0 commit comments