Re: [RFC PATCH v2 00/12] Fix some git clean issues
From: SZEDER Gábor <hidden>
Date: 2019-09-05 19:01:36
On Thu, Sep 05, 2019 at 08:47:23AM -0700, Elijah Newren wrote:
This patch series fixes a few issues with git-clean:
* Failure to preserve both tracked and untracked files within a nested
Git repository reported a few weeks ago by SZEDER[3].Wow, I didn't expect a 12 patch series to fix that issue... Thanks.
Elijah Newren (12):
t7300: Add some testcases showing failure to clean specified pathspecs
dir: fix typo in comment
dir: fix off-by-one error in match_pathspec_item
dir: Directories should be checked for matching pathspecs too
dir: Make the DO_MATCH_SUBMODULE code reusable for a non-submodule
case
dir: If our pathspec might match files under a dir, recurse into itNit: no capital letters after the '<area>:' prefix.
dir: add commentary explaining match_pathspec_item's return value git-clean.txt: do not claim we will delete files with -n/--dry-run clean: disambiguate the definition of -d clean: avoid removing untracked files in a nested git repository clean: rewrap overly long line clean: fix theoretical path corruption Documentation/git-clean.txt | 16 +++++----- builtin/clean.c | 17 ++++++++-- dir.c | 63 +++++++++++++++++++++++++++---------- dir.h | 8 +++-- t/t7300-clean.sh | 44 +++++++++++++++++++++++--- 5 files changed, 114 insertions(+), 34 deletions(-) -- 2.22.1.11.g45a39ee867