diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-03-12 03:49:05 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-03-12 03:49:05 +0000 |
| commit | 901a475b7a24b2d4eec2c0e006f0c7f78abd3789 (patch) | |
| tree | 0db95b2a82e7ba1c5b481c42cb8e35d8cf17d549 /usr.bin/diff/diff.c | |
| parent | 21a973f499d4069e8427bc18999d9fefb9ad777d (diff) | |
Notes
Diffstat (limited to 'usr.bin/diff/diff.c')
| -rw-r--r-- | usr.bin/diff/diff.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c index fa8b7cc5f1cb..c5f0632568dc 100644 --- a/usr.bin/diff/diff.c +++ b/usr.bin/diff/diff.c @@ -54,6 +54,7 @@ enum { OPT_IGN_FN_CASE, OPT_NO_IGN_FN_CASE, OPT_NORMAL, + OPT_HORIZON_LINES, }; static struct option longopts[] = { @@ -83,6 +84,7 @@ static struct option longopts[] = { { "exclude", required_argument, 0, 'x' }, { "exclude-from", required_argument, 0, 'X' }, { "ignore-file-name-case", no_argument, NULL, OPT_IGN_FN_CASE }, + { "horizon-lines", required_argument, NULL, OPT_HORIZON_LINES }, { "no-ignore-file-name-case", no_argument, NULL, OPT_NO_IGN_FN_CASE }, { "normal", no_argument, NULL, OPT_NORMAL }, { "strip-trailing-cr", no_argument, NULL, OPT_STRIPCR }, @@ -225,6 +227,8 @@ main(int argc, char **argv) case 'x': push_excludes(optarg); break; + case OPT_HORIZON_LINES: + break; /* XXX TODO for compatibility with GNU diff3 */ case OPT_IGN_FN_CASE: ignore_file_case = 1; break; |
