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.
Syntax
checkin('filename','comments
','string') checkin({'filename1','filename2','filename3', ...},'comments
', 'string') checkin('filename','option
','value
', ...)
Description
checkin('
checks in the file named filename
'
,'comments
','string')
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', ...},'
checks in the files named comments
',
'string')
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.
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
checkin({'/matlab/mymfiles/clock.m', ... '/matlab/mymfiles/calendar.m'},'comments','Adjustment for Y2K')
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 | ![]() |