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

Configure whitespaces #58

Closed
extsoft opened this issue Sep 1, 2017 · 1 comment · Fixed by #88
Closed

Configure whitespaces #58

extsoft opened this issue Sep 1, 2017 · 1 comment · Fixed by #88
Assignees

Comments

@extsoft
Copy link
Contributor

extsoft commented Sep 1, 2017

https://stackoverflow.com/questions/3372822/git-trim-whitespace?answertab=active#tab-top

Ask a user to apply this configuration:

[core]
    whitespace = trailing-space,space-before-tab
[apply]
    whitespace = fix

DoD:

  1. Must be present in local and global config.
  2. Use defaults from the sample above if git's global config has no values.
  3. Ask a user "configure whitespaces?" and apply configuration on if the user will agree
@AntonKarabaza AntonKarabaza self-assigned this Oct 9, 2017
@AntonKarabaza
Copy link

@extsoft From Git Documentation:

space-before-tab (enabled by default)
trailing-space is a short-hand to cover both blank-at-eol and blank-at-eof
blank-at-eol (enabled by default)
blank-at-eof (enabled by default)

Seems, that we don't need to configure:

[core]
    whitespace = trailing-space,space-before-tab

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

Successfully merging a pull request may close this issue.

2 participants