Skip to content

Stage part of file as with git add --patch #1175

Open
@joelostblom

Description

@joelostblom

Is your feature request related to a problem? Please describe.

It is often helpful to be able to stage parts of a file, as this gives more control over what is committed and encourages both atomic commits and review of what is being staged.

Describe the solution you'd like

A panel where you can click the lines you want to stage/unstage. Similar to what other git gui tools such as Sourcetree, GitKraken, and RStudio do:

image

Describe alternatives you've considered

I personally use the terminal, but this would be very helpful when teaching how to use git in jupyterlab

Additional context

  • Python package version: 3.10.4

  • Extension version: 0.36

  • Git version: 2.34.1

  • Operating System and its version: "Pop!_OS 22.04 LTS"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions