I haven't heard of git core.whitespace (will have to look that up). But
for this I would look into a pre-commit hook. You can read hooks here:
http://git-scm.com/book/en/Customizing-Git-Git-Hooks
Bryce
On 10/25/12 12:36 AM, Eberhard Beilharz wrote:
I have the following whitespace settings:
git config core.whitespace
blank-at-eol,space-before-tab,indent-with-non-tab,blank-at-eof,tabwidth=4
This detects if a line starts with a tab and 4 or more spaces (and
then some text), or one or more spaces followed by a tab. It doesn't
detect if I have a tab and 1-3 spaces.
Is there a way to tell git to treat that as an error as well?
Something like the reverse of tab-in-indent (=>space-in-indent)?
Thanks,
-Eberhard
--
You received this message because you are subscribed to the Google
Groups "Git for human beings" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/git-users/-/vp173UzRSb8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Git for
human beings" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en.