From: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
To: git@vger.kernel.org
Cc: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
Subject: [PATCH 0/6] Negation magic pathspec
Date: Wed, 12 Oct 2011 09:44:37 +1100 [thread overview]
Message-ID: <1318373083-13840-1-git-send-email-pclouds@gmail.com> (raw)
After the last round toying with .gitignore mechanism as a way to
exclude paths, I have finally got back to the negative pathspec.
I'm still struggling with read_directory() rewrite so that struct
pathspec can be used throughout git, but now realized we can at least
enable magic for certain commands and die() on those that don't.
This may help move magic pathspec patches forward.
The nice thing about this series is that negative pathspec patch is
small and simple, much less headache to review than the previous
version (and as a consequence, not as powerful).
So here it is to gather comments whether we should go this way. Very
much WIP, I have not even run "make test".
Nguyễn Thái Ngọc Duy (6):
Recognize magic pathspec as filenames
Replace has_wildcard with PATHSPEC_NOGLOB
Convert prefix_pathspec() to produce struct pathspec_item
Implement parse_pathspec()
Convert simple init_pathspec() cases to parse_pathspec()
Implement negative pathspec
Documentation/glossary-content.txt | 8 ++--
builtin/grep.c | 4 +-
builtin/ls-files.c | 2 +-
builtin/ls-tree.c | 6 +-
builtin/reset.c | 2 +-
cache.h | 29 +++++++++++-
dir.c | 85 +++++++++++++++++++++++++++--------
revision.c | 9 ++--
setup.c | 56 +++++++++++-------------
tree-walk.c | 44 ++++++++++++++++---
10 files changed, 169 insertions(+), 76 deletions(-)
--
1.7.3.1.256.g2539c.dirty
next reply other threads:[~2011-10-11 22:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-11 22:44 Nguyễn Thái Ngọc Duy [this message]
2011-10-11 22:44 ` [PATCH 1/6] Recognize magic pathspec as filenames Nguyễn Thái Ngọc Duy
2011-10-12 20:49 ` Junio C Hamano
2011-10-13 4:23 ` Nguyen Thai Ngoc Duy
2011-10-13 6:06 ` Junio C Hamano
2011-10-11 22:44 ` [PATCH 2/6] Replace has_wildcard with PATHSPEC_NOGLOB Nguyễn Thái Ngọc Duy
2011-10-11 22:44 ` [PATCH 3/6] Convert prefix_pathspec() to produce struct pathspec_item Nguyễn Thái Ngọc Duy
2011-10-11 22:44 ` [PATCH 4/6] Implement parse_pathspec() Nguyễn Thái Ngọc Duy
2011-10-11 22:44 ` [PATCH 5/6] Convert simple init_pathspec() cases to parse_pathspec() Nguyễn Thái Ngọc Duy
2011-10-13 0:29 ` Junio C Hamano
2011-10-11 22:44 ` [PATCH 6/6] Implement negative pathspec Nguyễn Thái Ngọc Duy
2011-10-11 23:17 ` [PATCH 0/6] Negation magic pathspec Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1318373083-13840-1-git-send-email-pclouds@gmail.com \
--to=pclouds@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).