From: Mirko Faina Date: Thu, 08 Oct 2026 12:12:47 GMT Subject: Re: [RFC PATCH 0/6] Introduce precious files Message-ID: In-Reply-To: On Thu, Oct 08, 2026 at 02:06:56PM +0200, Mirko Faina wrote: > Introduce precious files based on Elijah Newren's document [1]. > > With this series documentation is not updated yet but I wanted some feedback > before polishing and moving on to implement the changes for "git clean". > > [1] https://lore.kernel.org/git/pull.1627.git.1703643931314.gitgitgadget@gmail.com/ > > [1/6] precious-files.txt: new document proposing new precious file type (Elijah Newren) > [2/6] dir.h: replace pattern macros with enum in attr.h (Mirko Faina) > [3/6] dir.c: teach parse_path_pattern() precious files (Mirko Faina) > [4/6] dir.c: teach add_pattern() reject precious pattern (Mirko Faina) > [5/6] unpack-trees: teach check_ok_to_remove() precious (Mirko Faina) > [6/6] builtin/ls-files.c: support for precious files (Mirko Faina) > > Documentation/technical/precious-files.txt | 540 +++++++++++++++++++++ > attr.c | 8 +- > attr.h | 10 +- > builtin/check-ignore.c | 1 + > builtin/clean.c | 4 +- > builtin/ls-files.c | 75 ++- > builtin/sparse-checkout.c | 16 +- > dir.c | 144 +++++- > dir.h | 51 +- > t/helper/test-path-walk.c | 2 +- > t/t1091-sparse-checkout-builtin.sh | 8 + > t/t2205-add-worktree-config.sh | 2 +- > t/t3001-ls-files-others-exclude.sh | 27 ++ > t/t7508-status.sh | 9 + > unpack-trees.c | 7 +- > 15 files changed, 849 insertions(+), 55 deletions(-) > create mode 100644 Documentation/technical/precious-files.txt > > -- > 2.56.0 I forgot to specify the base. The series is based on c46c1e3772 (Start Git 2.98 cycle, 2026-09-30).