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

How to get diff of a directory with batdiff? #100

Open
thatanjan opened this issue Jun 22, 2023 · 1 comment
Open

How to get diff of a directory with batdiff? #100

thatanjan opened this issue Jun 22, 2023 · 1 comment
Labels
batdiff Related to the batdiff script. bug Something isn't working

Comments

@thatanjan
Copy link

thatanjan commented Jun 22, 2023

In git, I have some modified file in a directory, then I can get all the diff of all the files.

git diff dir/
git diff .

But doesn't work with batdiff.

batdiff .
[bat error]: '.' is a directory.

Is it possible to achieve the same thing with batdiff?
Thanks in advance.

@eth-p eth-p added batdiff Related to the batdiff script. bug Something isn't working labels Sep 13, 2023
@eth-p
Copy link
Owner

eth-p commented Sep 13, 2023

This should have been supported, but a previous commit appears to have broken it with bat (but not delta).

Fixed in commit 2e1e768, but in the meantime, it works when delta as the viewer. You can enable delta by default by setting export BATDIFF_USE_DELTA=true in your shell :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
batdiff Related to the batdiff script. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants