LGTM

https://codereview.appspot.com/579570046/diff/579580044/lily/stencil-integral.cc
File lily/stencil-integral.cc (right):

https://codereview.appspot.com/579570046/diff/579580044/lily/stencil-integral.cc#newcode111
lily/stencil-integral.cc:111: for (;scm_is_pair (l); l = scm_cdr (l))
to automatically reformat changed lines of code, you could install the
following hook:  

$ cat .git/hooks/pre-commit
#!/bin/sh
FILES=$(git diff -U0 --no-renames --diff-filter=AM --no-color
--name-only HEAD | egrep '(hh|cc)$' )

if [[ -n "${FILES}" ]]; then
    git diff --no-renames --diff-filter=AM -U0 --no-color HEAD |
clang-format-diff.py -i -p1
    git add ${FILES}
fi

(doesn't work well with partial file staging, though)

https://codereview.appspot.com/579570046/

Reply via email to