Skip to content

Commit

Permalink
switch to git diff
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Feb 1, 2021
1 parent 82c1d67 commit c771235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cov_diff.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

diff_cov_output="$(diff ../codecov-main.txt ./codecov.txt | sed -n '/^[-=][^-=]/p' )"
diff_cov_output="$(git diff ../codecov-main.txt ./codecov.txt | sed -E -n '/^(---|\+\+\+|@@)/!p' | tail -n +3)"
diff_cov_output="\`\`\`diff $diff_cov_output \`\`\`"
diff_cov_output="${diff_cov_output//'%'/'%25'}"
diff_cov_output="${diff_cov_output//$'\n'/'%0A'}"
Expand Down

0 comments on commit c771235

Please sign in to comment.