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

Use the default no-command-line-args form of git diff? #175

Open
shunf4 opened this issue Nov 5, 2024 · 0 comments
Open

Use the default no-command-line-args form of git diff? #175

shunf4 opened this issue Nov 5, 2024 · 0 comments

Comments

@shunf4
Copy link

shunf4 commented Nov 5, 2024

From https://git-scm.com/docs/git-diff :

git diff [<options>] [--] [<path>…​]

This form is to view the changes you 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. You can stage these changes by using git-add[1].

And I do mean to view the changes I made relative to the index. But both diff2html and diff2html -- invoke git diff -M -C HEAD, which is not what I desire. Is there any way to use the default no-command-line-args form of git diff, without exporting the diff to a file and load it in diff2html by -i file?

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

1 participant