Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2016 11:42:57 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r310949 - user/bapt/diff
Message-ID:  <201612311142.uBVBgvwC058522@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612311142.uBVBgvwC058522>