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

[PATCH 0/4] .gitignore, reinclude rules, take 2

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Feb 15, 2016, 09:03 UTC
Message-ID
<1455527019-7787-1-git-send-email-pclouds@gmail.com>

Take one was bad and reverted in commit 8c72236. Take two provides a more complete solution to the pair of rules

  exclude/this
  !exclude/this/except/this

3/4 should do a better job at stopping regressions in take 1. 4/4 provides the solution. I think I have tested (and wrote tests) for all the cases I can imagine.

Nguyễn Thái Ngọc Duy (4):
  dir.c: fix match_pathname()
  dir.c: support tracing exclude
  dir.c: support marking some patterns already matched
  dir.c: don't exclude whole dir prematurely
 Documentation/git-check-ignore.txt          |   1 +
 Documentation/git.txt                       |   5 +
 Documentation/gitignore.txt                 |  17 ++-
 dir.c                                       | 204 +++++++++++++++++++++++++++-
 dir.h                                       |   3 +
 t/t3001-ls-files-others-exclude.sh          |   7 +-
 t/t3007-ls-files-other-negative.sh (new +x) | 153 +++++++++++++++++++++
 7 files changed, 378 insertions(+), 12 deletions(-)
 create mode 100755 t/t3007-ls-files-other-negative.sh
-- 
2.7.0.377.g4cd97dd
Next: Nguyễn Thái Ngọc Duy
Message 1 of 10 in “.gitignore, reinclude rules, take 2”
  1. 0/4 .gitignore, reinclude rules, take 2Nguyễn Thái Ngọc Duy, Feb 15, 2016
  2. 1/4 dir.c: fix match_pathname()Nguyễn Thái Ngọc Duy, Feb 15, 2016
  3. Junio C HamanoFeb 15, 2016
  4. Duy NguyenFeb 16, 2016
  5. 2/4 dir.c: support tracing excludeNguyễn Thái Ngọc Duy, Feb 15, 2016
  6. 3/4 dir.c: support marking some patterns already matchedNguyễn Thái Ngọc Duy, Feb 15, 2016
  7. Junio C HamanoFeb 15, 2016
  8. Duy NguyenFeb 16, 2016
  9. 4/4 dir.c: don't exclude whole dir prematurelyNguyễn Thái Ngọc Duy, Feb 15, 2016
  10. Junio C HamanoFeb 15, 2016

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.