Here is a reroll of this series (after much delay).
Changes in v7:
* changed order of file size and file open error check in read_gitfile
* resolved conflicts with nd/multiple-work-trees. This removed the
need for is_git_directory_gently that was added in v6 and simplified
some error cases.
Erik Elfström (5):
setup: add gentle version of read_gitfile
setup: sanity check file size in read_gitfile_gently
t7300: add tests to document behavior of clean and nested git
p7300: add performance tests for clean
clean: improve performance when removing lots of directories
builtin/clean.c | 30 +++++++++--
cache.h | 12 ++++-
setup.c | 91 +++++++++++++++++++++++++-------
t/perf/p7300-clean.sh | 31 +++++++++++
t/t7300-clean.sh | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 280 insertions(+), 24 deletions(-)
create mode 100755 t/perf/p7300-clean.sh