oneliner for add line to svn:ignore

47 Views Asked by At
$ svn pg svn:ignore .
file1
file2
file3
$ svn pe svn:ignore .
// manually add file4 in default text editor

How to add file4 to svn:ignore using bash in one line command?

1

There are 1 best solutions below

0
Alberto Re On BEST ANSWER

Surely not elegant but it works:

svn propget svn:ignore . > /tmp/svnproperties && echo "file4" >> /tmp/svnproperties && svn propset svn:ignore . --file /tmp/svnproperties