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

Docs: Emphasize that diff-so-fancy is usable as a general diff tool #328

Closed
petdance opened this issue Apr 11, 2019 · 4 comments
Closed

Comments

@petdance
Copy link

I still use Subversion a lot and diff-so-fancy is great as a tool for Subversion diffs, too. Heck, any diffs. Currently, it sounds like it's a git-only tool.

@unphased
Copy link

unphased commented Oct 9, 2019

Could you elaborate, how could I use it to compare two plain files, for example? It's not obvious.

@petdance
Copy link
Author

petdance commented Oct 9, 2019

Take the output from diff -u and pipe it into diff-so-fancy.

diff -u old.txt new.txt | diff-so-fancy

diff-so-fancy isn't doing any diffing. It's just taking the diff output and making it prettier.

The fact that it's not obvious is my point for my submitting this suggestion.

@unphased
Copy link

unphased commented Oct 9, 2019

Oh, right. Keep forgetting that diff needs -u to do the "standard" thing. Thanks.

martijnengler added a commit to martijnengler/diff-so-fancy that referenced this issue Nov 23, 2019
diff-so-fancy is great for git of course, but it's also very nice to use
for just normal diffs between two files

Fixes so-fancy#328
martijnengler added a commit to martijnengler/diff-so-fancy that referenced this issue Nov 26, 2019
If there are no quotes around the arguments the dsf alias won't work
with spaces when used in bash. (Does seem to work in zsh.)

Goes to issue so-fancy#328 / PR so-fancy#358
@scottchiefbaker
Copy link
Contributor

This should be addressed in b18ec02 which just landed.

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

3 participants