Skip to content

feat: implements auto targeting of current tree - #192

Open
Niyudi wants to merge 2 commits into
kworkflow:unstablefrom
Niyudi:auto-target-tree
Open

feat: implements auto targeting of current tree#192
Niyudi wants to merge 2 commits into
kworkflow:unstablefrom
Niyudi:auto-target-tree

Conversation

@Niyudi

@Niyudi Niyudi commented Jul 28, 2026

Copy link
Copy Markdown

This PR implements a quick quality of life feature: when a user first applies a patch, if there is no target tree set, it automatically takes the current tree and branch and sets it as the target. Currently, the way to set these attributes is though the config file. As a first fix to facilitate onboarding, this feature avoids confusion on patches failing to apply when first using the program.

Future steps may include adding the config file to the UI, so it can be edited in program, and reworking the flow of patch application so that the tree and branch can be seen/set right before running.

Niyudi added 2 commits July 29, 2026 01:12
Implements first version of auto tree detector, that does everything
silently. When applying a patch, if no tree is targeted, it checks
if the currenr working directory is a valid branch and targets it.

Signed-off-by: Pedro Yudi Honda <niyudi.honda@usp.br>
Changes message to mention the tree was auto detected when it is the
case. This way, there is at least some warning to when the system
triggers.

Signed-off-by: Pedro Yudi Honda <niyudi.honda@usp.br>
@Niyudi
Niyudi force-pushed the auto-target-tree branch from 9eceffe to f66bb83 Compare July 29, 2026 04:16
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