git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC PATCH 0/6] Introduce precious files

From
Mirko Faina <mroik@delayed.space>
Date
Oct 8, 2026, 12:06 UTC
Message-ID
<cover.1791460418.git.mroik@delayed.space>
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
Next: Mirko Faina
Message 1 of 8 in “Introduce precious files”
  1. 0/6 Introduce precious filesMirko Faina, Oct 8, 2026
  2. 1/6 precious-files.txt: new document proposing new precious file typeMirko Faina, Oct 8, 2026
  3. 2/6 dir.h: replace pattern macros with enum in attr.hMirko Faina, Oct 8, 2026
  4. 3/6 dir.c: teach parse_path_pattern() precious filesMirko Faina, Oct 8, 2026
  5. 4/6 dir.c: teach add_pattern() reject precious patternMirko Faina, Oct 8, 2026
  6. 5/6 unpack-trees: teach check_ok_to_remove() preciousMirko Faina, Oct 8, 2026
  7. 6/6 builtin/ls-files.c: support for precious filesMirko Faina, Oct 8, 2026
  8. Mirko FainaOct 8, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.