-
Notifications
You must be signed in to change notification settings - Fork 330
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
Can't use string ("auto") as a HASH ref while "strict refs" in use at /usr/local/bin/diff-so-fancy line 376. #245
Comments
Ok, figured it out. It was because I had https://github.com/SimenB/vcsh_git/blob/2f94f33d90261c4690c557bbecc9901d1b00edb3/.gitconfig#L35 As an aside, I don't think the colors you suggest in the readme are better than EDIT: One thing better with your colors are the new rename highlight. I still like the diff colors you get from auto more, though. Might be just my color scheme? |
I didn't even know color "auto" was a thing. I'll take a look at this and let you know when I find the fix. |
FWIW, it's the default, (rename your Regarding colour preference though, I believe (though I can't find a reference) that I think the colours suggested in the readme are more an 'FYI, these are what were used for the screenshots'. |
Maybe it could also suggest to try "auto"? Is it possible to get rename highlight to work with |
rename hightlight is handled by DiffHighlight so it uses the d-h colors:
|
Circling back... I set the color to
Perhaps there is something else in your config that's triggering this? I'd like to recreate it so I can attempt to work around it. |
I'm able to reproduce with this minimal config:
If |
Interesting... it definitely has to do with the order of the config. I switched the git config parsing to work around this. You can try the |
- Allows `git log` and any Git diff command to work properly due to the upgrade to Diff So Fancy 1.1.0. - [Issue](so-fancy/diff-so-fancy#245).
That looks closer for sure. I'm guessing it's your theme that's skewing the colors a little bit. Not a big deal, I was just curious why they weren't mapping 1:1. |
👍 Works for me |
FYI - same problem here... changing the order in |
I'm 99% sure this is fixed on |
- Allows `git log` and any Git diff command to work properly due to the upgrade to Diff So Fancy 1.1.0. - [Issue](so-fancy/diff-so-fancy#245).
When I try to use the colors you've defined in your readme, I get the title as an error.
This is using 1.1.0.
[color "diff-highlight"]
are ok, but not[color "diff"]
.Full git config https://github.com/SimenB/vcsh_git/blob/2f94f33d90261c4690c557bbecc9901d1b00edb3/.gitconfig
The text was updated successfully, but these errors were encountered: