News for hackers. Stuff that matters.
Re:Linus: please write good git commit messages by JoshTriplett on Sunday November 27, 2011 @10:45PM (#3284398)
Because doing so would then require extra complexity to provide a syntax for lines that should not get wrapped, such as code, transcripts, tables, ASCII art...

Hard-wrapping paragraphs to a desired length in the original log allows humans to decide which lines should wrap and which ones shouldn't, without a pile of complexity similar to HTML, Markdown, or some other markup language.

Re:Linus: please write good git commit messages by codex on Monday November 28, 2011 @03:28AM (#3285094)
Couldn't our woes be solved with something as simple as soft-wrap with a tweak:

soft-wrap:

- to allow the presentation layer to soft-wrap a line, just don't add a newline.

- for new paragraphs, just add two newlines as usual

- for indent sensitive code, diagrams, etc. add newlines where appropriate, taking care to not exceed 74 columns for any line. Everyone does this already.

+ tweak:

- in the presentation layer, soft-wrap all lines except those less than 74 characters long.

This isn't perfect for terminals less than 80 characters wide, in that the diagrams won't fit, but nobody uses narrow terminals, and Linus' scheme is even more broken for this case, so it's strictly better. It also allows one to easily distinguish diagrams from non diagrams by eyeballing the text flow. Best of all, it makes fewer assumptions about terminal width.

Re:Linus: please write good git commit messages by JoshTriplett on Monday November 28, 2011 @04:06AM (#3285187)
Text that shouldn't wrap can exceed 74 characters. Some examples: log messages, transcripts, large tables. So, no, that wouldn't suffice.
Re:Linus: please write good git commit messages by timknauf on Monday November 28, 2011 @01:18PM (#3286933)
But how are those log messages, transcripts and large tables all that much better off under the current system? If a console is only 80 characters wide, they're still going to either disappear off the right edge or (as with most consoles I can think of) get soft-wrapped by the console anyway.
Re:Linus: please write good git commit messages by atomicdog on Monday November 28, 2011 @10:20AM (#3286165)
>would then require extra complexity to provide a syntax for lines that should not get wrapped,

And what's stopping someone implementing this?

Re:Linus: please write good git commit messages by JoshTriplett on Monday November 28, 2011 @11:28AM (#3286476)
> And what's stopping someone implementing this?

Most likely, not wanting to inflict such a syntax on git users, when the current approach works just fine.

But nothing stops someone from writing a patch with an off-by-default option for such a syntax, and proposing it for inclusion.