X-Git-Url: https://git.auder.net/?p=valse.git;a=blobdiff_plain;f=hooks%2Fpre-commit;h=bf5d7357a0d7a5d4c222d2a559b399d1baace18a;hp=24babdb8efecb0f886b1978860a3b053b4e6c060;hb=f2041bb9cbb566da77e11d04318a081dafdd7a5c;hpb=430a98439a49281c4b17801c95da3e6d9ef88488 diff --git a/hooks/pre-commit b/hooks/pre-commit index 24babdb..bf5d735 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -35,7 +35,7 @@ __indent_R() { echo "Indenting " $file echo "library(formatR);formatR::tidy_source('$file',comment=TRUE,blank=TRUE, - arrow=TRUE,brace.newline=TRUE,indent=2,width.cutoff=90,file='$file')" | R --slave + arrow=TRUE,brace.newline=TRUE,indent=2,width.cutoff=80,file='$file')" | R --slave git add "$file" }