MATLAB Function Reference    
checkin

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.

Syntax

Description

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
Purpose
value Argument
'force'

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.

'on'
'off' (default)
'lock'
When set to on, filename remains checked out. Comments are submitted. The default value for lock is off.
'on'
'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.

Examples

Check in a File with Comments

Typing

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

Typing

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

Check a File in and Keep It Checked out

Typing

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