Which file does svn:ignore modify?
Asked Answered
E

1

3

I would like to know which file svn propset svn:ignore modifies (equivalent to .gitignore) so that I can actually commit that file to the repo.

E.g. I am working with Java and Maven, which creates a directory named "target", which I am ignoring. svn propset svn:ignore target . does work but I don't know which settings file is modifies by that command so that I propagate the change to my team.

RELATED: SVN ignore like .gitignore

Eocene answered 22/8, 2016 at 19:18 Comment(1)
It does not modify a versioned file, it is stored internally in .svn file (or files depending on SVN version). This will be propagated to the team, the same way you can propagate new files or deletion which are also stored in the .svn file(s).Annuity
J
3

svn:ignore property is stored together with other properties inside the .svn folder. It will be stored in the repository automatically after your next commit. If you want to commit only svn:ignore change without commiting other "normal" files you can try:

svn commit --depth=empty .

The value of svn:ignore can be checked with svn propget svn:ignore.

Jahdai answered 23/8, 2016 at 8:8 Comment(4)
how can I see that svn:ignore has changed ?Eocene
you can check the value of svn:ignore with svn propget svn:ignoreJahdai
however, will that tell me whether the property set has changed relative to the repo ?Eocene
svn propget svn:ignore checks the value in your local working copy. If you want to check the value of svn:ignore in the repository you can try svn propget svn:ignore URL, where URL is the location of your remote repository.Jahdai

© 2022 - 2024 — McMap. All rights reserved.