vladon
vladon

Reputation: 8401

oneliner for add line to svn:ignore

$ 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?

Upvotes: 0

Views: 44

Answers (1)

Alberto Re
Alberto Re

Reputation: 514

Surely not elegant but it works:

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

Upvotes: 1

Related Questions