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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugBug Reportstopic: docsgh-stack documentation site issues (e.g. broken dark mode).

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions