Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore multiple specific files with svn

Tags:

svn

Our build system generates a number of files that are scattered around the source tree.

These files the show up when running svn status

In the example below all of the files with a '?' in the thirdparty directory have been generated by the build system.

e.g.

svn status
M       common/db/unit_test/src/db_payload_builder_test_suite.cpp
?       common/db/unit_test/Makefile
M       common/lib/osal/variant/linux/public_inc/osal_specific_msgq.hpp
M       common/lib/enb/public_inc/enb_service.h
?       thirdparty/lib/curl/public_inc_arm
?       thirdparty/lib/curl/public_inc_x86
?       thirdparty/lib/curl/originals/config.log
?       thirdparty/lib/curl/originals/libcurl.pc
?       thirdparty/lib/curl/originals/config.status
?       thirdparty/lib/curl/originals/libtool
?       thirdparty/lib/curl/originals/curl-config
?       thirdparty/lib/curl/originals/src/curl

I would like to tell svn to ignore these files. I cannot simply specify directories that should be ignored since many of these directories contain sources that are checked in to the repository.

The example above is a subset of the files that are generated, we cannot use an ignore pattern because some of the generated files match files that we do not wish to ignore (e.g. xxx_.h" )

I have tried using svn propset svn:ignore 'somefile' dir but I can only manage to tell svn to ignore one specific file per directory.

How can I specify multiple specific files for svn to ignore?

like image 458
mark Avatar asked Nov 30 '22 04:11

mark


1 Answers

One line solution:

svn propset svn:ignore "file1"$'\n'"file2"$'\n'"file3" .
like image 122
Jan.J Avatar answered Dec 09 '22 08:12

Jan.J