<div dir="ltr">Hi.<div><br></div><div>I've started using clang-format and it is working really well. </div><div><br></div><div>But there is a problem. If I checkout a git file, format it, change a line and push it back I would have taken the "ownership" of all lines of code (at least in terms of git-blame). We are a lot of devs here and everybody has his/her own "taste" about formatting. </div>
<div><br></div><div>It would be so great if git and clang-format were integrated (in lets say something like clang-git).</div><div><br></div><div>The idea :</div><div><br></div><div>The source can be kept in the clang-git "format free" - probably only 1 very long line with all the source without any "extra" whitespace and whatsoever. When the file is checked and opened in tool (patched vim, notepad++, VS, etc), the tool converts the "format free" version of the file using clang-format to a format the user wants. clang-git is responsible for managing the "ownership", track and show changes (probably using clang-diff :))).</div>
<div><br></div><div>Using setup like this everybody can use whatever format he likes without messing with the code format </div><div>of his/her colleagues. </div><div><br></div><div>Thanks,</div><div>Bye.</div><div><br></div>
</div>