Closed ben-edna closed 10 months ago
In git a similar concept is called .gitignore
and in svn you can fetch an external using --ignore
flag where files with a relative name are ignored
Given you have the following structure:
/parent_repository
/trunk
/my_project
/external_project
/trunk
/subfolder
unwanted_file.txt
In this case, the SVN external definition might look like this:
^/external_project/trunk/subfolder my_project --ignore unwanted_file.txt
When you run svn update in your /parent_repository/trunk
, it will fetch the content of ^/external_project/trunk/subfolder
into the my_project
directory. The --ignore
option applies to the content within the my_project
directory, so it's relative to the root of the external's working copy.
My proposal would be to call the field ignore:
What do you think @jgeudens & @sach-edna ?
Sometimes a project has some large subfolder you want to ignore, or certain files that are not interesting. Add a new field to
project
in manifest to list folders/files to be ignored:The file paths should be relative to the
src:
directoryurl-base
:repo-path
:src
+ignore
url
:src
+ignore
Implementation would be different per vcs:
--ignore
flagsparse-checkout
if possible?