SHA256
1
0
forked from pool/ack
ack/ack-ignore-osc.patch
Michael Vetter e07234c5e9 Accepting request 766335 from home:mrey:branches:utilities
- ack 3.3.1:
  * Fix some regexes that would be shown as invalid when used with
    the -Q option. Since the -Q tells ack to treat the regex as a
    literal, this shouldn't be possible (GH #294)
- includes changes from 3.3.0:
  * Improve error message when the regex passed is invalid
  * Add new file and directory exclusions
  * Reorganize --help menu
  * Output message when using --show-types without -f or -g if it
    will have no effect
  * Improve error message when ack gets passed two options that
    can't be used together
  * Fix the behavior of --break and --heading
  * Warn when option pairs don't make sense to use together
  * Fix required minimum version of Getopt::Long module (GH #287)
  * Line number and filename separators in --passthru mode now work
    the same as in context (-A/-B/-C) mode (GH #291)
- Rebase patches:
  * ack-add_spec.patch
  * ack-ignore-osc.patch

OBS-URL: https://build.opensuse.org/request/show/766335
OBS-URL: https://build.opensuse.org/package/show/utilities/ack?expand=0&rev=35
2020-01-28 07:53:53 +00:00

34 lines
1.1 KiB
Diff

From: Andreas Stieger <andreas.stieger@gmx.de>
Date: Thu, 04 Sep 2014 23:09:09 +0100
Subject: Ignore .osc
Upstream: No
Ignore .osc
---
diff -Pdru ack-v3.3.1.orig/lib/App/Ack/ConfigDefault.pm ack-v3.3.1/lib/App/Ack/ConfigDefault.pm
--- ack-v3.3.1.orig/lib/App/Ack/ConfigDefault.pm 2020-01-13 20:18:17.000000000 +0100
+++ ack-v3.3.1/lib/App/Ack/ConfigDefault.pm 2020-01-22 14:32:56.451135251 +0100
@@ -70,6 +70,9 @@
# https://www.mercurial-scm.org/
--ignore-directory=is:.hg
+# openSUSE Commander
+--ignore-directory=is:.osc
+
# Quilt
# https://directory.fsf.org/wiki/Quilt
--ignore-directory=is:.pc
diff -Pdru ack-v3.3.1.orig/t/internals/ack-dump.t ack-v3.3.1/t/internals/ack-dump.t
--- ack-v3.3.1.orig/t/internals/ack-dump.t 2020-01-13 20:18:17.000000000 +0100
+++ ack-v3.3.1/t/internals/ack-dump.t 2020-01-22 14:39:05.934290071 +0100
@@ -29,7 +29,7 @@
is( scalar @perl, 2, 'Two specs for Perl' );
my @ignore_dir = grep { /ignore-dir/ } @results;
- is( scalar @ignore_dir, 27, 'Twenty-seven specs for ignoring directories' );
+ is( scalar @ignore_dir, 28, 'Twenty-eight specs for ignoring directories' );
}
exit 0;