From owner-svn-src-user@freebsd.org Sat Dec 31 11:42:58 2016 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69A42C991D4 for ; Sat, 31 Dec 2016 11:42:58 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39D311097; Sat, 31 Dec 2016 11:42:58 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBVBgvTL058523; Sat, 31 Dec 2016 11:42:57 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBVBgvwC058522; Sat, 31 Dec 2016 11:42:57 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201612311142.uBVBgvwC058522@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sat, 31 Dec 2016 11:42:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r310949 - user/bapt/diff X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2016 11:42:58 -0000 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) {