annotate-output: big overhaul

Hey.

This is some major overhaul of annotate-output.

The core parts are IMO:

  • getting rid of any shell variables set by the script itself, which may override variables that the caller wants to export to the invoked program (a355a37f, 383a8291 and ecea5128)
  • greatly improving performance when no date conversion specifiers are used (c236a7ec)

Per default the behaviour (in terms of output format) should not be changed, at least the stuff that might get parsed by someone.

Please notice that I did some ugly reference of another commit ID (that of a355a37f) in some commits. So if you don’t apply that on top of the current master or change commits, please adapt the commit messages, or let me do it.

Other than that, please review and merge[0] :-)

Thanks, Chris.

[0] Or even better, let someone skilled in C and especially IO streams (the latter being a weakness of mine), re-implemented it properly.

Merge request reports

Loading