Skip to content

Commit 81e2441

Browse files
committed
but: added unstaged area when stacks are included
Still unclear whether this condition to add it is correct. There are also name clashes in but itself (e.g. when a file is named `zz`).
1 parent a565b74 commit 81e2441

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/actions/tools/but/cli.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ func ActionCliIds(opts CliIdsOpts) carapace.Action {
4343
}
4444
}
4545

46+
if opts.Stacks {
47+
batch = append(batch, carapace.ActionValues("zz", "unstaged area")) // TODO when to add this - is stacks as condition correct?
48+
// TODO add uid
49+
}
50+
4651
for _, stack := range status.Stacks {
4752
if opts.Changes {
4853
for _, assigned := range stack.AssignedChanges {

0 commit comments

Comments
 (0)