-
Notifications
You must be signed in to change notification settings - Fork 184
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
git's noprefix option breaks diff-cover #93
Comments
This is the stack, fwiw:
|
Looks like there's precedent to setting return execute([
'git', '-c', 'diff.mnemonicprefix=no', 'diff',
"{branch}...HEAD".format(branch=compare_branch),
'--no-color',
'--no-ext-diff'
])[0] Disabling return execute([
'git', '-c', 'diff.mnemonicprefix=no', '-c',
'diff.noprefix=no', 'diff',
"{branch}...HEAD".format(branch=compare_branch),
'--no-color',
'--no-ext-diff'
])[0] |
(will have a PR for this today, likely) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this in my
.gitconfig
:This breaks
diff-cover
's regex, which expects there to bea/
andb/
prefixes in the diff output.It's easy enough to disable the option, but I'd love to find a way to have the option for my normal use and have
diff-cover
still work. :)The text was updated successfully, but these errors were encountered: