[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.25-51-g954a3eb
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.25-51-g954a3eb |
Date: |
Fri, 19 Aug 2016 06:13:01 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via 954a3eb3d15fee91b5d78632c6f6a5ed5f93505f (commit)
from 5b3da8d04b34f80e02c8d96bd739add0b05961a0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=954a3eb3d15fee91b5d78632c6f6a5ed5f93505f
commit 954a3eb3d15fee91b5d78632c6f6a5ed5f93505f
Author: Paul Eggert <address@hidden>
Date: Thu Aug 18 23:12:10 2016 -0700
grep: tune list_files conversion to enum
* src/grep.c (grepdesc): Use a slightly more-efficient way to test
list_files.
diff --git a/src/grep.c b/src/grep.c
index cc46919..f4d0444 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -1853,8 +1853,7 @@ grepdesc (int desc, bool command_line)
}
status = !count;
- if ((list_files == LISTFILES_MATCHING && count > 0)
- || (list_files == LISTFILES_NONMATCHING && count == 0))
+ if (list_files == (status ? LISTFILES_NONMATCHING : LISTFILES_MATCHING))
{
print_filename ();
putchar_errno ('\n' & filename_mask);
-----------------------------------------------------------------------
Summary of changes:
src/grep.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.25-51-g954a3eb,
Paul Eggert <=