Allen Wittenauer created YETUS-872:
--------------------------------------

             Summary: compute_gitdiff should get re-optimized
                 Key: YETUS-872
                 URL: https://issues.apache.org/jira/browse/YETUS-872
             Project: Yetus
          Issue Type: Improvement
          Components: Precommit
            Reporter: Allen Wittenauer


In particular:

{code}
      startline=$(echo "${line}" | cut -f3 -d' ' | cut -f1 -d, | tr -d + )
      numlines=$(echo "${line}" | cut -f3 -d' ' | cut -s -f2 -d, )
{code}

should be able to be re-written using native bash string substitution, cutting 
back on a lot of process forking.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to