yetus-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YETUS-872) compute_gitdiff should get re-optimized
Date Thu, 02 May 2019 20:36:00 GMT
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)

Mime
View raw message