chiark / gitweb /
delta: Support filtering what type of deltas to show
authorGergely Nagy <algernon@balabit.hu>
Wed, 16 May 2012 16:11:27 +0000 (18:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 May 2012 16:51:26 +0000 (18:51 +0200)
commit807f46452202891731b2317ef9bc9a6bc7115f23
treec203cb438ee9e049780a48c3b4ea0c00265ec6c9
parent3ea6e73287921e1aa7f1173761cf522ae44e0977
delta: Support filtering what type of deltas to show

Not everyone is interested in every kind of deltas (and some might
even be interested knowing which files do not have overrides), so this
here is an implementation of a --type=LIST... option for
systemd-delta, that makes it possible to filter what subset of deltas
we want.

The available modifiers are masked, equivalent, redirected, overriden,
and unchanged - they should be self explanatory, and the man page
explains them in a little more detail anyway.

As a side effect, in case of overriden files, the diff output was made
optional.

By default, everything is shown (with a diff, if appropriate) except
for completely unchanged files.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
man/systemd-delta.xml
src/delta/delta.c