Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joelostblom opened this issue Oct 3, 2022 · 4 comments
Open

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

joelostblom opened this issue Oct 3, 2022 · 4 comments

Comments

@joelostblom
Copy link

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"

@jankap
Copy link

jankap commented May 8, 2023

This would really be helpful to only push some parts of the notebook files, and keep others i.e. meta-data or output as it is.

How do you avoid this big amount of noise in gut currently?

@fcollonval
Copy link
Member

This is community driven extension, new contributions are always welcomed if you want to give a try @jankap

@jankap
Copy link

jankap commented May 9, 2023

This is community driven extension, new contributions are always welcomed if you want to give a try @jankap

Sure, got it and rephrased my harsh comment, sorry.
I really ask myself how people currently avoid noise in git.

However I was surprised that this feature even does not seem to exist in VSCode, so it seems to be more complex than expected.

@GorgiAstro
Copy link

This would be an awesome feature indeed! Unfortunately I cannot code in Javascript nor Typescript so I won't be able to contribute...

However I was surprised that this feature even does not seem to exist in VSCode, so it seems to be more complex than expected.

This feature now exists in VSCode :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants