Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
User talk:Charley.wang.gmail.com
Revision as of 11:40, 10 March 2010 by Unnamed Poltroon (Talk)
Successfully ignored
Pattern |
Target |
Notes |
/*.st? |
/test.stp |
|
/*.sta[0-9] |
/test.sta1 |
|
/*/*.c |
/src/a.c |
|
/src/ |
/src |
Where /src is a directory |
/src/ |
/src/new/a.c |
|
/src/ |
/src/a.c |
|
.stp |
/test.stp |
No "/" in pattern, match filename |
.stp |
/src/test.stp |
No "/" in pattern, match filename |
!/test.stp /test.stp |
/test.stp |
|
/src/new |
/src/new/ |
Ignore folder |
/src/new |
/src/new/a.c |
Ignore contents of folder |
/src/new/ |
/src/new/a.c |
|
src |
/src/a.c |
|
src |
/src/new/a.c |
|
new | /src/new/a.c | Ignore folder (name-only match) |
?rc | /src/a.c | |
?rc | /src/new/a.c | |
/new/a/b1 | /src/new/a/b1/* | |
b1 | /a/b1/* | |
b? | /a/b1/* | |
Successfully not ignored (File added to parent's .gitignore)
Pattern | Target | Notes |
/*.c | /src/a.c | * should not expand to '/' |
/src/new/asdf/ | /src/new/asdf | Ends with "/", only match dirs |
/*.st? |
/test.stp | Pattern + higher priority negation |
#/test.stp | /test.stp | Comment |
!/a.c
/src/a.c |
/src/a.c | Where !/a.c is in src/.gitignore |
!/test.stp
/test.stp |
/test.stp | Negation chaining |