summaryrefslogtreecommitdiff
path: root/src/delta
Commit message (Collapse)AuthorAge
* Unify parse_argv styleZbigniew Jędrzejewski-Szmek2014-08-03
| | | | | | | | | | | | | | | | getopt is usually good at printing out a nice error message when commandline options are invalid. It distinguishes between an unknown option and a known option with a missing arg. It is better to let it do its job and not use opterr=0 unless we actually want to suppress messages. So remove opterr=0 in the few places where it wasn't really useful. When an error in options is encountered, we should not print a lengthy help() and overwhelm the user, when we know precisely what is wrong with the commandline. In addition, since help() prints to stdout, it should not be used except when requested with -h or --help. Also, simplify things here and there.
* Reject invalid quoted stringsZbigniew Jędrzejewski-Szmek2014-07-31
| | | | | | | | | | | | | | | | | | | | | | String which ended in an unfinished quote were accepted, potentially with bad memory accesses. Reject anything which ends in a unfished quote, or contains non-whitespace characters right after the closing quote. _FOREACH_WORD now returns the invalid character in *state. But this return value is not checked anywhere yet. Also, make 'word' and 'state' variables const pointers, and rename 'w' to 'word' in various places. Things are easier to read if the same name is used consistently. mbiebl_> am I correct that something like this doesn't work mbiebl_> ExecStart=/usr/bin/encfs --extpass='/bin/systemd-ask-passwd "Unlock EncFS"' mbiebl_> systemd seems to strip of the quotes mbiebl_> systemctl status shows mbiebl_> ExecStart=/usr/bin/encfs --extpass='/bin/systemd-ask-password Unlock EncFS $RootDir $MountPoint mbiebl_> which is pretty weird
* delta: draw arrows with draw_special_char()Lennart Poettering2014-04-23
| | | | | | | Let's unify generation of unicode chars at one place. Also, don't add an extra space into chars we print, except for the tree chars where this is really necessary.
* delta: do not use unicode chars in C localeZbigniew Jędrzejewski-Szmek2014-04-16
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1088418
* delta: ensure that d_type will be set on every fsLukas Nykryn2014-01-09
|
* delta: if prefix is specified, only show overrides thereZbigniew Jędrzejewski-Szmek2013-12-22
| | | | | systemd-delta /run/systemd/system will show all unit overrides in /run, etc.
* delta: fix delta for drop-insZbigniew Jędrzejewski-Szmek2013-12-22
| | | | | Also, fix highlighting, add more debug statements, make const tables static and global, run path_kill_slashes only at entry.
* delta: replace readdir_r with readdirFlorian Weimer2013-12-21
|
* Get rid of our reimplementation of basenameZbigniew Jędrzejewski-Szmek2013-12-06
| | | | | | The only problem is that libgen.h #defines basename to point to it's own broken implementation instead of the GNU one. This can be fixed by #undefining basename.
* clients: unify how we invoke getopt_long()Lennart Poettering2013-11-06
| | | | | Among other things this makes sure we always expose a --version command and show it in the help texts.
* systemd-delta: Only print colors when on a ttyDaniel Schaal2013-08-04
| | | | | | | | | This make systemd-delta follow the behaviour of systemctl and journalctl. https://bugs.freedesktop.org/show_bug.cgi?id=67656 [zj: unify color query methods between those three programs.]
* systemd-delta: count overrides only of the requested typeZbigniew Jędrzejewski-Szmek2013-05-16
|
* systemd-delta: add support for drop-in snippetsLukas Nykryn2013-05-16
|
* pager: introduce "jump to end" optionHarald Hoyer2013-03-07
| | | | | | | | $ journalctl -be is what you want :) https://bugzilla.redhat.com/show_bug.cgi?id=867841
* use strneq instead of strncmpThomas Hindoe Paaboel Andersen2013-02-13
|
* build-sys: drop all distribution specfic checksLennart Poettering2013-01-04
| | | | Yay, we now have a completely generic systemd. No distribution specific checks anymore!
* delta.c: fix option '-t'Thomas Hindoe Paaboel Andersen2012-11-14
| | | | | Both the help and man page claims that it accepts -t with an argument so let's do that.
* delta.c: use _cleanup_Thomas Hindoe Paaboel Andersen2012-11-13
|
* remove duplicate semicolonsThomas Hindoe Paaboel Andersen2012-11-12
|
* util: define union dirent_storage and make use of it everywhereLennart Poettering2012-09-19
| | | | | | Make sure to allocate enough space for readdir_r(). https://bugzilla.redhat.com/show_bug.cgi?id=858754
* util: rename join() to strjoin()Lennart Poettering2012-07-13
| | | | This is to match strappend() and the other string related functions.
* core: rename system.preset to system-presets to follow naming scheme of ↵Lennart Poettering2012-06-27
| | | | | | | other dirs in /usr/lib/systemd/ Thankfully nobody is using this yet, and presets aren't documented yet, hence take the liberty to rename this.
* delta/delta.c: initialize bottom for fail stateHarald Hoyer2012-05-21
|
* delta: fix spelling of overriddenNis Martensen2012-05-21
|
* delta: drop PHP'ismLennart Poettering2012-05-21
|
* delta: don't highlight unchanged filesLennart Poettering2012-05-21
|
* delta: introduce arg_flags field, to follow our usual schemeLennart Poettering2012-05-21
|
* delta: use same nomenclature for equivalent and redirected everywhereLennart Poettering2012-05-16
|
* delta: enums are much cooler than definesLennart Poettering2012-05-16
|
* delta: Support filtering what type of deltas to showGergely Nagy2012-05-16
| | | | | | | | | | | | | | | | | | | | 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>
* delta: add preset dirsLennart Poettering2012-05-16
|
* delta: add missing filesLennart Poettering2012-05-16