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

Using nbdiff to view the changes you made relative to the index/staging area #683

Open
aliceoleary0 opened this issue Sep 21, 2023 · 1 comment

Comments

@aliceoleary0
Copy link

Is there a way to use nbdiff in the same way as you might use git diff to view the changes made relative to the index (staging area for the next commit). In other words, the differences are what you could tell Git to further add to the index but you still haven’t (instead of comparing two files)

@krassowski krassowski changed the title uding nbdiff to view the changes you made relative to the index/staging area Using nbdiff to view the changes you made relative to the index/staging area Sep 21, 2023
@vidartf
Copy link
Collaborator

vidartf commented Sep 27, 2023

Can you give an example of git commands you would run?

Normally you should be able to if you use nbdime as a difftool. E.g. configure nbdime, and then use git difftool --tool nbdime <other args you would give to git diff>. Also, nbdiff[-web] does try to support the same kind of args as git diff (at least partially), so I'm curious what your output would be then.

Note: nbdime does not have support for partially staged files. Not sure if git gives difftools partially staged files or not.

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

No branches or pull requests

2 participants