Perforce blame

前端 未结 6 1835
闹比i
闹比i 2021-02-01 13:07

Is there an equivalent of svn\'s blame for Perforce on the command line? p4 annotate doesn\'t display usernames -- only changeset numbers (without ancestor history!

6条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 13:29

    The p4 annotate command actually can follow merges/integrations and branching on the command line with the -I and -i commands (but it cannot do both at once :( ):

    -I
    Follow integrations into the file. If a line was introduced into the file by a merge, the source of the merge is indicated as the changelist that introduced the line. If that source was itself the result of an integration, that source will be used instead, and so on.
    The use of the -I option implies the -c option. The -I option cannot be combined with -i.
    -i
    Follow file history across branches. If a file was created by branching, Perforce includes revisions up to the branch point.
    The use of the -i option implies the -c option. The -i option cannot be combined with -I.
    

提交回复
热议问题