Documentation

Support

Unity Version Control

APPLYLOCAL

Apply local changes with the Unity Version Control CLI.
Read time 1 minuteLast updated 21 days ago

Description

Checks for local changes (locally moved, locally deleted, and locally changed) and applies them, so that UVCS starts tracking those changes.

Usage

cm applylocal | al [--dependencies] [<item_path>[ ...]] [--machinereadable [--startlineseparator=<sep>] [--endlineseparator=<sep>] [--fieldseparator=<sep>]]

Options

Option / Argument

Description

--dependencies
Adds local change dependencies into the items to apply.
item_path
Items to be applied. Use a whitespace to separate paths. Use double quotes (
" "
) to specify paths containing spaces.
--machinereadable
Outputs the result in an easy-to-parse format.
--startlineseparator
Used with the
--machinereadable
flag, specifies how the lines should start.
--endlineseparator
Used with the
--machinereadable
flag, specifies how the lines should end.
--fieldseparator
Used with the
--machinereadable
flag, specifies how the fields should be separated.

Help

Remarks

  • If
    --dependencies
    and
    <item_path>
    are not specified, the operation involves all the local changes in the workspace.
  • It is always applied recursively from the given path.

Examples

cm applylocal foo.c bar.c
cm applylocal .
(Applies all local changes in the current directory.)
cm applylocal
(Applies all local changes in the workspace.)
cm applylocal --machinereadable
(Applies all local changes in the workspace, and prints the result in a simplified, easier-to-parse format.)
cm applylocal --machinereadable --startlineseparator=">"
--endlineseparator="<" --fieldseparator=","
(Applies all local changes in the workspace, and prints the result in a simplified, easier-to-parse format, starting and ending the lines and separating the fields with the specified strings.)