You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2020/09/14 15:29:12 UTC

[GitHub] [trafficserver] bneradt commented on a change in pull request #7186: autopep8: avoid running on non-committed files.

bneradt commented on a change in pull request #7186:
URL: https://github.com/apache/trafficserver/pull/7186#discussion_r488024284



##########
File path: tools/autopep8.sh
##########
@@ -59,6 +59,32 @@ function main() {
   fi
 
   DIR=${@:-.}
+
+  # Only run autopep8 on tracked files. This saves time and possibly avoids
+  # formatting files the user doesn't want formatted.
+  tmp_dir=/tmp/git_files_$$

Review comment:
       Yeah, that's better.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org