ドキュメント

Unity Version Control

LABEL EDITCOMMENT

Edit label comments with the Unity Version Control CLI.
読み終わるまでの所要時間 1 分最終更新 1日前

Description

Modifies the comment of a label.

Usage

cm label | lb editcomment | edit <lbspec> (<new_comment> | -commentsfile=<comments_file>)

Options

Option / Argument

Description

lbspecThe label whose comment will be edited. (Use
cm help objectspec
to learn more about label specs.)
new_commentThe new comment for the label.
-commentsfile
Reads the new comment from the specified file.

Help

Remarks

  • To clear the comment, pass an empty comment (
    ""
    ).
  • Editing the comment of a label leaves the label on the changeset it's applied to.
  • edit
    is an alias of
    editcomment
    . To create a label named "edit", use
    cm label create edit
    .

Examples

The following example replaces the comment of label
BL001
with the content of
comment.txt
:
cm label editcomment lb:BL001 -commentsfile=comment.txt