-
Notifications
You must be signed in to change notification settings - Fork 22
Make build excluded over all folders in the project #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make build excluded over all folders in the project #29
Conversation
|
@henrikbrixandersen Interestingly you will not be putted as assignee. Thus I ping you :) Please take a look. |
There is really no need to ping me. I get notifications for all activity here. |
| # build | ||
| /build* | ||
| *build* | ||
| /twister-out* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The *build* glob is a little too wide IMO. Please remove the existing /build* glob add a **/build* glob at the end of the # build section instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henrikbrixandersen Hi, glad to see you working on weekend :) Thank you pointing on it. It is done in the commit: 2a39694
088a30e to
2a39694
Compare
Current /build* ignore pattern will exclude build only in the root of the project. In some cases it is needed build folder to be located in app folder or anywhere else in the project. This PR fixes this behaviour. Signed-off-by: Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
.gitignore
Outdated
|
|
||
| # build | ||
| /build* | ||
| **/build* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Please move it to after the /twister-out* line as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You were faster than me. It is done now here: c19fab3
2a39694 to
c19fab3
Compare
|
@KozhinovAlexander Thank you for your contribution :) |
Current /build* ignore pattern will exclude build only in the root of the project.
In some cases it is needed build folder to be located in app folder or anywhere else in the project.
This PR fixes this behaviour.
How to reporduce: Make west put build artefacts into /app/build folder or just move your folder there. You shall see git showing you about 500 untracked files.
UPDATE: This change allows efectivelly delete the whole build folder with
git clean -xdf. Please still be carefull using this command anyway.