Skip to content

feat: add wt.startpoint config and --startpoint flag - #238

Open
yoichi wants to merge 1 commit into
k1LoW:mainfrom
yoichi:default-start-point-to-create-branch
Open

yoichi wants to merge 1 commit into
k1LoW:mainfrom
yoichi:default-start-point-to-create-branch

Conversation

@yoichi

@yoichi yoichi commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

One of the benefits of git-wt is that creating a worktree and switching to it requires only a single argument: the branch name.

However, in a triangular workflow, when creating a new branch, I want to specify origin/main as the start-point so that the new local branch tracks origin/main. Having to specify origin/main every time I create a new branch is cumbersome and undermines the simplicity of git-wt.

This PR adds the wt.startpoint configuration (and the --startpoint flag), allowing a default start-point to be configured so that I can continue creating worktrees with just the branch name. An explicitly specified start-point takes precedence over the configured default.

In a triangular workflow, when creating a new branch, one typically
specifies `origin/main` as the start-point to ensure the branch tracks
the upstream default branch.
Since `git-wt` is aware when a new branch is being created, it would
be convenient if it could automatically set the start-point argument
in such cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant