What does “Modify files with subversion/git” mean?

% rails
General Options:
-c, --svn                        Modify files with subversion. (Note: svn must be in path)
-g, --git                        Modify files with git. (Note: git must be in path)

What do these "Modify files" options do for me?

Edit: It is unclear to me what using one (or both?) of these options actually does. As in, how do they alter workflow? What svn/git commands would I then not be issuing myself, or possibly what type of more esoteric commands will I now end up having to issue? Fundamentally, where are the docs on this feature?


Looks like --git was added in r8772 in response to ticket #10690. Reading that patch is the closest thing to documentation I've found. The option applies to Rails::Generator::Commands, and does the appropriate svn add or git add for files created by script/generate.

It also does the appropriate rm or reset for things removed by script/destroy.

It does not commit any changes, only adds the files so they're tracked by the VCS.

Oh, and --git is also broken for the rails app generator, at least through rails 2.3.5.

'-c' will direct rails to retrieve and store data from a subversion source code repositry. '-g' will drect reails to retrieve and store code in a git repository.

In both cases the source code repositry must be installed and configured, and, you should have previously set your local environment to point to the desired instance , project directories etc.

Need Your Help

CSS3 Columns background cutoff

css css3 web multiple-columns

I am trying to use CSS3 columns to order some divs top to bottom then left to right. It seems to work pretty well but I have this one issue as shown in the image below. I give each of the divs a

google map is not show in firefox

javascript html google-maps

it works fine in chrome. but when loading by firefox, the right side for google map will leave blank. and it also seem like all code functionality works fine(Spring mvc and Jquery)

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.