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
{{ message }}
Repository navigation
--show-diff-on-failure does not respect --color #1007
I'm running pre-commit on gitlab, and I noticed that the diffs produced when --show-diff-on-failure is enabled do not respect --color=always.
It looks like a pretty easy fix: we just need to pass the --color setting to git diff. It supports the same "auto", "always", "never" settings as pre-commit.
On Thu, May 30, 2019 at 6:36 AM Anthony Sottile ***@***.***> wrote:
@mandarvaze <https://github.com/mandarvaze> I say go for it 👍 -- let me
know if you want some more directed pointers about where this code is and
what to pass through :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1007?email_source=notifications&email_token=AAAPOE3WP4KF7FRAT5FDFCDPX7J4HA5CNFSM4HIGG5FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWSKZSI#issuecomment-497331401>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAPOE42VKQADBBVSM3HZ5DPX7J4HANCNFSM4HIGG5FA>
.
Activity
asottile commentedon Apr 24, 2019
want to submit a PR?
chadrik commentedon Apr 24, 2019
Sure!
asottile commentedon May 15, 2019
@chadrik ping!
mandarvaze commentedon May 30, 2019
@chadrik If you are busy/not working on this, can I give it a try ?
I came here looking for "good-first-issue"
asottile commentedon May 30, 2019
@mandarvaze I say go for it 👍 -- let me know if you want some more directed pointers about where this code is and what to pass through :)
chadrik commentedon May 31, 2019
Pass color option to git diff (on failure)
asottile commentedon Jun 6, 2019
this has been released as part of v1.17.0 -- thanks again for the issue!
chadrik commentedon Jun 6, 2019