]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/pretty-print: skip redundant section headers with --tldr 29553/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Oct 2023 17:11:44 +0000 (19:11 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Oct 2023 16:32:18 +0000 (18:32 +0200)
commitc04cec128f486c75e27171c10510867367fadf69
tree914fc96579931c96231e263940f8d7685a03cf32
parent5737c890d61a8ca5b847fa2e1975e35faacce05f
shared/pretty-print: skip redundant section headers with --tldr

If the same section appears consecutively in a given file, subsequent
occurenced are not printed.

[Slice]
Foo=bar
[Slice]   # this is not printed
Bar=bar

Requested in
https://github.com/systemd/systemd/pull/29553#pullrequestreview-1677310352.
src/shared/pretty-print.c