Hacker News new | ask | show | jobs
by neuromanser 818 days ago
> Do you know how to read @@ -5,6 +5,7 @@ syntax?

Do you not?

5 comments

20 years staring at it and no, i don't. i usually have to work it out from context. i think if you have vi or ed sensory organs it might work better for ya. which.. i still chuckle that vi is the visual editor, bc ed lol
No, I sure don’t.
No one knows anything until they learn it.
Same here. If there's a great ELI5 explanation somewhere, please post a link. Thanks
The comma-separated number pairs are starting line number of hunk, and the number of lines in the hunk.

The one starting with a minus sign is for the original file, the one with the plus prefix is for the new file.

See https://www.gnu.org/software/diffutils/manual/html_node/Deta... for a canonical source and more detail

Never needed to.