]> Savannah Git Hosting - gnulib.git/commit
fts: three levels of leaf optimization
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Jul 2017 06:54:00 +0000 (23:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Jul 2017 07:27:47 +0000 (00:27 -0700)
commitb446700e06b71f8170c46371261e8334888df7f8
treee3c827c179efdee1da20cf633d07ddca12c5448a
parent2649851d0409c3fafee7cf396d11c10892ac0e53
fts: three levels of leaf optimization

* lib/fts.c (enum leaf_optimization): New type with three values.
(S_MAGIC_AFS): New macro.  Sort them.
(leaf_optimization): Rename from leaf_optimization_applies, and
return enum leaf_optimization instead of bool.  All uses changed.
Add cases for unknown type and for AFS.
(fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
ChangeLog
lib/fts.c