Skip to content

Support configurable default --from / default parent branch #5

@dezren39

Description

@dezren39

Problem

Without --from, ez create always stacks the new branch on top of the current branch. Many workflows use a non-trunk integration branch (e.g. dev, staging, release/next) as the default base for new work. There is no way to configure a default parent.

Current behavior

  • ez create foo stacks on whatever branch is checked out
  • ez create foo --from main works but must be specified every time
  • No config for "default base branch" distinct from trunk

Proposed solution

  1. Add default_from (or default_parent) to .git/ez/stack.json
  2. When --from is not specified and the current branch is trunk, use default_from if set
  3. ez config set default-from <branch> to configure
  4. Falls back to current behavior (stack on current branch) when unset

Use cases

  • Teams that develop against dev and only merge devmain for releases
  • Repos with multiple long-lived integration branches
  • Avoiding accidental deep stacking when user forgets --from

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions