Skip to content

--adopt is still recommended in the CLI docs #161

Description

@DavisVaughan

gh-stack/cmd/root.go

Lines 25 to 26 in 514f5ab

# Or turn an existing set of branches into a stack
$ gh stack init --adopt branch1 branch2 branch3

but using it results in a deprecation warning

gh-stack/cmd/init.go

Lines 119 to 124 in 514f5ab

// --adopt is deprecated; print a notice and continue normally.
if opts.adopt {
cfg.Warningf("The --adopt flag is deprecated. Existing branches are now adopted automatically.")
cfg.Printf("You can simply run: %s",
cfg.ColorCyan("gh stack init <branch1> <branch2> ..."))
}

looks like you can literally just remove the --adopt flag from the CLI docs and it would work the same

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions