A WIP patch [1] was posted a while ago. This is the polished version with tests and stuff. '!' is used as the shortcut instead of '-'. You can now say "select this path except this subpath..." for nearly all commands that take pathspec. [1] http://thread.gmane.org/gmane.comp.version-control.git/234835/focus=238062 Nguyễn Thái Ngọc Duy (3): glossary-content.txt: rephrase magic signature part Support pathspec magic :(exclude) and its short form :! pathspec.c: support adding prefix magic to a pathspec with mnemonic magic Documentation/glossary-content.txt | 34 +++---- builtin/add.c | 5 +- dir.c | 47 +++++++-- pathspec.c | 37 ++++--- pathspec.h | 4 +- t/t6132-pathspec-exclude.sh (new +x) | 184 +++++++++++++++++++++++++++++++++++ tree-walk.c | 83 +++++++++++++++- 7 files changed, 354 insertions(+), 40 deletions(-) -- 1.8.5.1.25.g8667982 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html