APPLYLOCAL

Description

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

Usage

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

Options

Option / ArgumentDescription
--dependenciesAdds local change dependencies into the items to apply.
item_pathItems to be applied. Use a whitespace to separate paths. Use double quotes (" ") to specify paths containing spaces.
--machinereadableOutputs the result in an easy-to-parse format.
--startlineseparatorUsed with the '--machinereadable' flag, specifies how the lines should start.
--endlineseparatorUsed with the '--machinereadable' flag, specifies how the lines should end.
--fieldseparatorUsed 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.)