Skip to content

Git Add-Patch Interactive Mode #1679

@TheBrenny

Description

@TheBrenny

Sometimes I work on multiple bugs or features without changing branches or because that wastes time. Instead, I do all my work at once, and then when something's ready to commit and push, I quickly flick through my changed files to find all the changes that relate to each other. If the file has multiple unrelated changes I go to my terminal and run git add -p ./file/to/commit. Sometimes my file has a number of changes to it becomes tedious to flick through each change.

Similar to how Git Lens has an interactive rebase editor, I'm proposing an interactive Add-Patch editor. I imagine something similar to a diff view would pop up, and we could click on code lenses for each hunk to either add it to the changes, or split it into smaller hunks. From there, the right hand editor would be a R/W editor allowing us to edit the hunks (like how the e option of git add -p lets you edit hunks).

I've duplicated this issue on the VSCode Repo because I think that it could be something that's supported out-of-the-box, but considering it's also an enhanced and niche type of feature, I've made this feature request as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions