Main Content

checkin

(Removed) Check files into source control system (UNIX platforms)

    checkin has been removed. For more information on updating your code, see Version History.

    Description

    example

    checkin(filename,'comments',commenttext) checks in the specified file to the source control system. You must save the file before checking it in, but the file can be open or closed.

    checkin(___,option1,value1,...,optionN,valueN) checks in using the specified options.

    Examples

    collapse all

    Check the file /myserver/myfiles/clock.m into the source control system, with the comment Adjustment for leapyear.

    checkin('/myserver/myfiles/clock.m','comments', ... 
    'Adjustment for leapyear')

    Check two files into the source control system, using the same comment for both files.

    checkin({'/myserver/myfiles/clock.m', ... 
    '/myserver/myfiles/calendar.m'},'comments', ... 
    'Adjustment for leapyear')

    Input Arguments

    collapse all

    File name, specified as a character vector or a cell array of character vectors. The file name must be a full path and include the file extension.

    Example: '/myserver/myfiles/clock.m'

    Example: {'/myserver/myfiles/clock.m','/myserver/myfiles/calendar.m'}

    Check-in comments for the source control system, specified as a character vector.

    Example: 'Adjustment for leapyear'

    Check-in options, specified as character vectors. Options apply to all specified file names.

    This table describes the supported options and values.

    Option

    Supported Values

    Description

    'force'

    'off' (default)

    'on'

    Set to 'off' to prevent checking in a file that has not changed since it was checked out.

    Set to 'on' to force the checkin even if the file has not changed.

    'lock'

    'on' (default)

    'off'

    Set to 'on' to check filename in with comments and then automatically check it back out.

    Set to 'off' to check filename in with comments without checking it back out.

    Version History

    Introduced before R2006a

    collapse all

    R2017a: Removed

    checkin has been removed.

    Replace this functionality with one of these options: