• Graham Christensen's avatar
    Add an .editorconfig; document git whitespace settings · 25df8fb4
    Graham Christensen authored
    Most of the projects I work on don't use tabs, and while authoring my
    first patch I had to wrestle with my editor to not introduce
    whitespace editors.
    
    The `.editorconfig` file is supported by a large number of editors
    out of the box, and many more with plugins.
    
    As a first-time contributor, I can't say for certain these settings
    are totally correct, but thus far git and my editor are satisfied
    enough.
    
    I considered adding `git config --local format.signOff true` but
    wanted to respect the warning:
    
        format.signOff
            A boolean value which lets you enable the -s/--signoff
            option of format-patch by default.  Note: Adding the
            Signed-off-by: line to a patch should be a conscious act and
            means that you certify you have the rights to submit this
            work under the same open source license. Please see the
            SubmittingPatches document for further discussion.
    
    Reviewed-by: George Melikov <mail@gme...
    25df8fb4