Main Content

checkout

(Removed) Check files out of source control system (UNIX platforms)

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

    Description

    example

    checkout(filename) checks out the file named filename from the source control system. The file can be open or closed when you use checkout.

    If you end the MATLAB® session, the file remains checked out. You can check in the file from within the MATLAB desktop during a later session or directly from your source control system.

    example

    checkout(___,option1,value1,...optionN,valueN) checks out using the specified options.

    Examples

    collapse all

    Check out the file /myserver/myfiles/clock.m from the source control system.

    checkout('/myserver/myfiles/clock.m')

    Check out /myserver/myfiles/clock.m and /myserver/myfiles/calendar.m from the source control system.

    checkout({'/myserver/myfiles/clock.m', ... 
    '/myserver/myfiles/calendar.m'})

    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-out 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 out a file that is already checked out.

    Set to 'on' to force the checkout even if the file is checked out. This option is effectively an undocheckout followed by a checkout.

    'lock'

    'on' (default)

    'off'

    Set to 'on' to lock the file at checkout so that access to the file for others is read-only.

    Set to 'off' to check out a read-only version of the file and allow other users to check out the file for updating while you have the file checked out. You do not have to check the file in after checking it out with this option.

    'revision'

    'version_num'

    Check out the specified revision of the file.

    Example: '1.1'.

    Version History

    Introduced before R2006a

    collapse all

    R2017a: Removed

    checkout has been removed.

    Replace this functionality with one of these options: