You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Allen Wittenauer (Jira)" <ji...@apache.org> on 2020/11/04 05:29:00 UTC

[jira] [Updated] (YETUS-872) compute_gitdiff should get re-optimized

     [ https://issues.apache.org/jira/browse/YETUS-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allen Wittenauer updated YETUS-872:
-----------------------------------
    Labels: beginner  (was: )

> 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
>            Priority: Major
>              Labels: beginner
>
> 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
(v8.3.4#803005)