diff3: set flagging to true in -X option and fix changelog

This commit is contained in:
panxiaohe 2022-03-22 11:25:37 +08:00
parent f4e5c97da2
commit 17a3564e6a
2 changed files with 41 additions and 6 deletions

View File

@ -0,0 +1,27 @@
From 0c3b6966fec92957c9d0e0ed0d83bc0716641d66 Mon Sep 17 00:00:00 2001
From: panxiaohe <panxh.life@foxmail.com>
Date: Tue, 22 Mar 2022 10:46:34 +0800
Subject: [PATCH] diff3: set flagging to true in -X option
The logic of diff3 -X option was changed because
commit 4c92a4 changed "FALLTHROUGH" to "break".
---
src/diff3.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/diff3.c b/src/diff3.c
index 6be7e3c..fc4adbc 100644
--- a/src/diff3.c
+++ b/src/diff3.c
@@ -304,6 +304,7 @@ main (int argc, char **argv)
break;
case 'X':
overlap_only = true;
+ flagging = true;
incompat |= 1 << OPTION_X;
break;
case 'E':
--
1.8.3.1

View File

@ -1,11 +1,13 @@
Name: diffutils Name: diffutils
Version: 3.8 Version: 3.8
Release: 1 Release: 2
Summary: A GNU collection of diff utilities Summary: A GNU collection of diff utilities
URL: http://www.gnu.org/software/diffutils/diffutils.html URL: http://www.gnu.org/software/diffutils/diffutils.html
Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz
Patch1: diffutils-cmp-s-empty.patch Patch1: diffutils-cmp-s-empty.patch
Patch2: diffutils-i18n.patch Patch2: diffutils-i18n.patch
Patch3: diff3-set-flagging-to-true-in-X-option.patch
License: GPLv3+ License: GPLv3+
Provides: bundled(gnulib) Provides: bundled(gnulib)
BuildRequires: gcc, help2man, gettext-devel BuildRequires: gcc, help2man, gettext-devel
@ -53,31 +55,37 @@ cat tests/test-suite.log
%exclude %{_infodir}/dir %exclude %{_infodir}/dir
%changelog %changelog
* Wed Dec 29 2021 zoulin<zoulin13@huawei.com> 3.8-1 * Tue Mar 22 2022 panxiaohe<panxh.life@foxmail.com> - 3.8-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:set flagging to true in diff3 -X option
* Wed Dec 29 2021 zoulin<zoulin13@huawei.com> - 3.8-1
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA
- SUG:NA - SUG:NA
- DESC:update version to 3.8 - DESC:update version to 3.8
* Wed Aug 11 2021 wangjie<wangjie375@huawei.com> 3.7-5 * Wed Aug 11 2021 wangjie<wangjie375@huawei.com> - 3.7-5
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA
- SUG:NA - SUG:NA
- DESC:fix missing binary operator before token "(" - DESC:fix missing binary operator before token "("
* Wed Mar 24 2021 zoulin<zoulin13@huawei.com> 3.7-4 * Wed Mar 24 2021 zoulin<zoulin13@huawei.com> - 3.7-4
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA
- SUG:NA - SUG:NA
- DESC:add -fsign-char for aarch64 for test-localeconv - DESC:add -fsign-char for aarch64 for test-localeconv
* Mon Nov 11 2019 shenyangyang<shenyangyang4@huawei.com> 3.7-3 * Mon Nov 11 2019 shenyangyang<shenyangyang4@huawei.com> - 3.7-3
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA
- SUG:NA - SUG:NA
- DESC:delete unneeded comments - DESC:delete unneeded comments
* Thu Oct 24 2019 shenyangyang<shenyangyang4@huawei.com> 3.7-2 * Thu Oct 24 2019 shenyangyang<shenyangyang4@huawei.com> - 3.7-2
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA
- SUG:NA - SUG:NA