You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen other examples where you do git diff --color=always dir_a dir_b -- {-1} but when I do this I get an error in the preview window with fatal: bad revision dir_a. -- {-1} seems to only work when running git diff without more than 1 argument (such as when diffing something within a git repo, not 2 directories in different paths).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make a general purpose diffing script.
git diff
lets you diff 2 non-git directories.I almost have it with this, but the file contents in the preview never updates when I select a new item:
I've seen other examples where you do
git diff --color=always dir_a dir_b -- {-1}
but when I do this I get an error in the preview window withfatal: bad revision dir_a
.-- {-1}
seems to only work when runninggit diff
without more than 1 argument (such as when diffing something within a git repo, not 2 directories in different paths).Beta Was this translation helpful? Give feedback.
All reactions