svn commit: r310949 - user/bapt/diff
Baptiste Daroussin
bapt at FreeBSD.org
Sat Dec 31 11:42:58 UTC 2016
Author: bapt
Date: Sat Dec 31 11:42:57 2016
New Revision: 310949
URL: https://svnweb.freebsd.org/changeset/base/310949
Log:
Beside what has been stated in previous commit, actually implement
--no-ignore-file-name-case some people might be using it, it is simple enough
to implement
Note that if one plays with multiple call to both --[case-]ignore-file-name-case
the latest one wins
Convinced by: cperciva, rwatson
Modified:
user/bapt/diff/diff.c
Modified: user/bapt/diff/diff.c
==============================================================================
--- user/bapt/diff/diff.c Sat Dec 31 11:35:51 2016 (r310948)
+++ user/bapt/diff/diff.c Sat Dec 31 11:42:57 2016 (r310949)
@@ -52,6 +52,7 @@ enum {
OPT_TSIZE = CHAR_MAX + 1,
OPT_STRIPCR,
OPT_IGN_FN_CASE,
+ OPT_NO_IGN_FN_CASE,
};
static struct option longopts[] = {
@@ -81,6 +82,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 },
+ { "no-ignore-file-name-case", no_argument, NULL, OPT_NO_IGN_FN_CASE },
{ "strip-trailing-cr", no_argument, NULL, OPT_STRIPCR },
{ "tabsize", optional_argument, NULL, OPT_TSIZE },
{ NULL, 0, 0, '\0'}
@@ -224,6 +226,9 @@ main(int argc, char **argv)
case OPT_IGN_FN_CASE:
ignore_file_case = 1;
break;
+ case OPT_NO_IGN_FN_CASE:
+ ignore_file_case = 0;
+ break;
case OPT_TSIZE:
tabsize = (int) strtonum(optarg, 1, INT_MAX, &errstr);
if (errstr) {
More information about the svn-src-user
mailing list