Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Check In Files (UNIX Platforms)

Checking In One or More Files Using the Current Folder Browser

  1. From the Current Folder browser, select the file or files to check in. A file can be open or closed when you check it in, but it must be saved, that is, it cannot contain unsaved changes.

  2. Right-click, and from the context menu, select Source Control > Check In.

  3. In the resulting Check in file(s) dialog box, you can add text in the Comments field. If you want to continue working on the files, select the check box Keep checked out. Click OK.

The files are checked into the source control system. If any file contains unsaved changes when you try to check it in, you will be prompted to and must then save the changes to complete the checkin.

An error appears in the Command Window if a file is already checked in.

If you did not keep a file checked out and you keep that file open, note that it is a read-only version.

Checking In One File Using the Editor, or the Simulink or Stateflow Products

  1. From the Editor, or the Simulink® or Stateflow® products, with the file open and saved, select File > Source Control > Check In.

  2. In the resulting Check in file(s) dialog box, you can add text in the Comments field. If you want to continue working on the files, select the check box Keep checked out. Click OK.

Function Alternative

Use checkin to check files into the source control system. The files can be open or closed when you use checkin. The checkin function takes this form:

checkin({'file1','file2', ...},'comments','comment_text',... 
'option','value')

For filen, use the complete path and include the file extension. You must supply the comments argument and a comments string with checkin.

Use the option argument to

  • Check in a file and keep it checked out — set the lock option value to on.

  • Check in a file even though it has not changed since the previous check in — set the force option value to on.

The comments argument and the lock and force options apply to all files checked in.

Example Using checkin Function

To check in the file clock.m with the comment Adjustment for leap year, type

checkin('\myserver\myfiles\clock.m','comments', ... 
'Adjustment for leap year')

For other examples, see the reference page for checkin.

Was this topic helpful?