Re: [RFC PATCH v2 00/12] Fix some git clean issues
- From
SZEDER Gábor <szeder.dev@gmail.com>
- Date
- Sep 5, 2019, 19:01 UTC
- Message-ID
- <20190905190126.GA32087@szeder.dev>
- In-Reply-To
- <20190905154735.29784-1-newren@gmail.com>
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.
Show 8 quoted lines
> 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 it
Nit: no capital letters after the '<area>:' prefix.
Show 17 quoted lines
> 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 >