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.
Difference between revisions of "User talk:Charley.wang.gmail.com"
Line 47: | Line 47: | ||
| /src/new<br> | | /src/new<br> | ||
| /src/new/<br> | | /src/new/<br> | ||
− | | <br> | + | | Ignore folder<br> |
|- | |- | ||
| /src/new<br> | | /src/new<br> | ||
| /src/new/a.c<br> | | /src/new/a.c<br> | ||
− | | <br> | + | | Ignore contents of folder<br> |
|- | |- | ||
| /src/new/<br> | | /src/new/<br> | ||
Line 67: | Line 67: | ||
| new | | new | ||
| /src/new/a.c | | /src/new/a.c | ||
− | | <br> | + | | Ignore folder (name-only match)<br> |
|- | |- | ||
| ?rc | | ?rc |
Revision as of 11:40, 10 March 2010
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 |