-
Notifications
You must be signed in to change notification settings - Fork 125
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
Improvements for managing untracked projects #622
Comments
This like a great idea to me, simple and useful. However we may need some kind of new
I would keep it simple and report only the top level directories ( |
But |
Sorry I wrote too fast. I meant: if there is a Different git clients report the similar situation with different verbosity. On the other hand, if there is a west project So the pseudo-code should probably look like this: def west_find_untracked(parent):
for child in parent:
if child is a west module:
continue # nothing to report
if west module(s) below child:
west_find_untracked(child)
else: # e.g.: zephyr_top/modules
report child as untracked # unless westignored
west_find_untracked(west_top) Nested projects should not matter: anything that |
Add untracked files and folder to west status output. This helps to keep the west checkout clean by alerting the user of folders that are no longer tracked by west. This is useful for detecting when a module has been removed, or moved. and is no longer updated by west update. Add the ability to ignore folders and files through a comma separated list in the west config file. Example: west config status.ignore .vscode/,optional/ Fixes: zephyrproject-rtos#622 Signed-off-by: Joakim Andersson <[email protected]>
Whenever the manifest file is modified by removing entries in the manifest or by moving the manifest entry path the project folder may end up containing folders that are no longer needed or duplicated entries.
An example of this is the TF-M repository split, where the folder name was changed from
tfm
totf-m
.Users doing
west update
after this change will end up with duplicated entries in their folder structure when the new project is imported by the old one still remains.Usually what the user wants to do at this point is to remove the not-used project as it now has duplicated entries and this causes problems when searching in the projects for symbols.
Since the folders usually are git repositories cleaning this up should not be handled automatically by the tool as the user my still have branches in the old folder that they wish to clean up first.
Providing the user with the information about these old folders with by useful so that they can do the appropriate action to get rid of them.
Listing the untracked folders in a similar way as git does when doing
west status
would be useful.West should skip folders that are inside existing projects, as this would otherwise be listed by git.
Example:
This is very useful when doing bisect to find a bug, or checking out previous releases to reproduce reported bugs.
This could add older projects to the checkout that should be cleaned up afterwards.
The text was updated successfully, but these errors were encountered: