Page MenuHomePhabricator

[refactor] Prep for scripted-diff by removing some \ns which annoy sed.
ClosedPublic

Authored by deadalnix on Wed, Jun 24, 23:09.

Details

Summary

This is a redo of https://github.com/bitcoin/bitcoin/pull/15141/commits/7721ad64f40a0c67edefaaf7353264d78df8803e

I used some sed magic:

sed -n '/\.DoS(/{ :loop N; s/,\n\s*/, /; s/\n\s*//; /\.DoS(.*;/!b loop}; p' -i ../src/validation.cpp ../src/consensus/tx_verify.cpp
Test Plan

Loop at the result

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

deadalnix created this revision.Wed, Jun 24, 23:09
Herald added a reviewer: Restricted Project. · View Herald TranscriptWed, Jun 24, 23:09
deadalnix requested review of this revision.Wed, Jun 24, 23:09

Lint violations are the whole purpose of that patch.

majcosta accepted this revision.Wed, Jun 24, 23:24
This revision is now accepted and ready to land.Wed, Jun 24, 23:24