JPDev@programming.dev to Programmer Humor@programming.dev · 7 months agoReview Pleaseprogramming.devimagemessage-square86fedilinkarrow-up1927arrow-down117
arrow-up1910arrow-down1imageReview Pleaseprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 7 months agomessage-square86fedilink
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up93·7 months agosets the diff to ignore whitespace Lines changed: 3
minus-squarekamen@lemmy.worldlinkfedilinkarrow-up33arrow-down1·7 months agoThe pipeline should handle formatting. No matter how you screw it up, once you commit, it gets formatted to an agreed upon standard.
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up3·7 months agoSome diff tools don’t handle indentation by default. So if you add a wrapper, it counts everything inside it as “changed”
minus-squarekamen@lemmy.worldlinkfedilinkarrow-up2·7 months agoThat’s what “toggle whitespace diff” is for.
minus-squarekamen@lemmy.worldlinkfedilinkEnglisharrow-up2·7 months agoPre-commit hooks is a common approach to this, so that whatever is committed gets processed. Another possibility would be to set a bot on the repo to do automated commits after human-made ones, but that can get a little noisy.
minus-squareAnarchoSnowPlow@midwest.sociallinkfedilinkarrow-up5·7 months agoHaha! Jokes on you! It was mostly gnu makefile calls to ruby scripts!!! You’ve just broken the build a million different ways!
minus-squareitsnotits@lemmy.worldlinkfedilinkarrow-up8arrow-down3·7 months ago Joke’s* on you (Short for “The joke is on you”.)
sets the diff to ignore whitespace
Lines changed: 3
The pipeline should handle formatting. No matter how you screw it up, once you commit, it gets formatted to an agreed upon standard.
Some diff tools don’t handle indentation by default.
So if you add a wrapper, it counts everything inside it as “changed”
That’s what “toggle whitespace diff” is for.
You can do that? How?
Pre-commit hooks is a common approach to this, so that whatever is committed gets processed. Another possibility would be to set a bot on the repo to do automated commits after human-made ones, but that can get a little noisy.
Haha! Jokes on you! It was mostly gnu makefile calls to ruby scripts!!! You’ve just broken the build a million different ways!
(Short for “The joke is on you”.)