MATLAB Function Reference    

Check file into source control system

Graphical Interface

As an alternative to the checkin function, use Source Control Check In in the Editor, Simulink, or Stateflow File menu.



checkin('filename','comments','string') checks in the file named filename to the source control system. Use the full pathname for the filename. You must save the file before checking it in. The file can be open or closed when you use checkin. The string argument is a MATLAB string containing check-in comments for the source control system. You must supply the comments argument and 'string'.

checkin({'filename1','filename2','filename3', ...},'comments', 'string') checks in the files named filename1 through filenamen to the source control system. Use the full pathnames for the files. Additional arguments apply to all files checked in.

checkin('filename','option','value', ...) provides additional checkin options. The option and value arguments are shown in the table below.

option Argument
value Argument

When set to on, filename is checked in even if the file has not changed since it was checked out. The default value for force is off.

'off' (default)
When set to on, filename remains checked out. Comments are submitted. The default value for lock is off.
'off' (default)

You can check in a file that you checked out in a previous MATLAB session or that you checked out directly from your source control system.


Check in a File with Comments


checks in the file /matlab/mymfiles/clock.m to the source control system with the comment Adjustment for Y2K.

Check in Multiple Files with Comments


checks two files into the source control system using the same comment for each.

Check a File in and Keep It Checked out


checks the file /matlab/mymfiles/clock.m into the source control system and keeps the file checked out.

See Also

checkout, cmopts, undocheckout

  char checkout