Ole Albers
Ole Albers

Reputation: 9295

Automatically add files to SVN inside a specific folder

I use TortoiseSVN to manage my SVN files. This all works quite well, but I have to manually add new files to SVN before I commit them.

In 99% of the cases that's exactly as wanted, but now I have a folder which contains logfiles that should be stored in SVN, but they are too dynamic to add them all manually.

So what I want is that I just commit the folder and all new files are automatically added and then committed.

I've seen a solution here, but not with TortoiseSVN.

Upvotes: 12

Views: 12117

Answers (1)

Albin Sunnanbo
Albin Sunnanbo

Reputation: 47038

In the TortoiseSVN Commit dialog, select the "Show unversioned files" checkbox and then check "Select / deselect all". Now all your unversioned files are added. This is the closest you can come to "automatic" in TorsoiseSVN.

Edit
Wait a moment, there are actually client side hook scripts in TortoiseSVN. You can probably add a "start commit hook" that runs svn add * in the desired folder.

Upvotes: 16

Related Questions