diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-04-20 14:22:33 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-04-20 14:22:33 +0000 |
| commit | fddcb7b82ff45dc9e08bab26bbfe7a2d2e8ca20f (patch) | |
| tree | 3e485615652828e8d65ef213796a7cc011a0ddf6 /usr.bin/diff/diff.h | |
| parent | 431bcfcdbde1606906a9c0be6930992e315dee5a (diff) | |
Implement a basic --changed-group-format
etcupdate(8) requires that option, while GNU diff supports many more variation
of that options, their behaviour beside the simple verion implemented here are
quite inconsistent as such I do not plan to implement those.
The only special keyword supported by this implementation are: %< and %>
%= is not implemented as the documentation of GNU diff says: common lines, but
it actually when tested print the changes from the first file
Notes
svn path=/head/; revision=317194
Diffstat (limited to 'usr.bin/diff/diff.h')
| -rw-r--r-- | usr.bin/diff/diff.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/diff/diff.h b/usr.bin/diff/diff.h index f70bb96102a4..87452058220f 100644 --- a/usr.bin/diff/diff.h +++ b/usr.bin/diff/diff.h @@ -47,6 +47,7 @@ #define D_NREVERSE 5 /* Reverse ed script with numbered lines and no trailing . */ #define D_BRIEF 6 /* Say if the files differ */ +#define D_GFORMAT 7 /* Diff with defined changed group format */ /* * Output flags @@ -87,6 +88,7 @@ extern int lflag, Nflag, Pflag, rflag, sflag, Tflag, cflag; extern int diff_format, diff_context, status, ignore_file_case; extern int tabsize; extern char *start, *ifdefname, *diffargs, *label[2], *ignore_pats; +extern char *group_format; extern struct stat stb1, stb2; extern struct excludes *excludes_list; extern regex_t ignore_re; |
