lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get_path_list: use loop instead of tail recursion (issue 579570046 by ad


From: hanwenn
Subject: get_path_list: use loop instead of tail recursion (issue 579570046 by address@hidden)
Date: Fri, 17 Apr 2020 02:12:17 -0700

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

[Prev in Thread] Current Thread [Next in Thread]