[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Findutils-patches] [PATCH] Add a -sort option to use fts's sorted trave

From: Phil Miller
Subject: [Findutils-patches] [PATCH] Add a -sort option to use fts's sorted traversal functionality
Date: Mon, 29 Dec 2014 17:49:54 -0600

* find/defs.h (struct options): Add a 'sort' flag.
* find/util.c (options_default): Disable sorting by default.
* find/parser.c: Add a function parse_sort() to recognize the
command-line option and set the 'sort' flag accordingly.
* find/ftsfind.c (find): When the 'sort' flag is set, tell fts to sort
files according to their path name
* find/find.1: Document -sort option and why it would be used

Signed-off-by: Phil Miller <address@hidden>
I don't know if this is considered trivial enough to not require explicit copyright assignment. If it isn't, then I'll be happy to go through that process.

 find/defs.h    |  3 +++
 find/find.1    |  9 +++++++++
 find/ftsfind.c |  8 ++++++--
 find/parser.c  | 12 ++++++++++++
 find/util.c    |  1 +
 5 files changed, 31 insertions(+), 2 deletions(-)

Attachment: 0002-Add-a-sort-option-to-use-fts-s-sorted-traversal-func.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]