← 返回命令列表

Linux command

rlog 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Show file history

rlog [file.c]

Show specific revision

rlog -r[1.5] [file.c]

Show revision range

rlog -r[1.1:1.5] [file.c]

Show by date

rlog -d"[>2024-01-01]" [file.c]

Show header only

rlog -h [file.c]

Show states

rlog -s[Exp] [file.c]

Show by author

rlog -w[username] [file.c]

说明

rlog prints information about RCS files. Without options, rlog prints the complete log: header information (RCS file name, working file, head revision, default branch, access list, locks, symbolic names, comment leader, total revisions) followed by entries for each revision (number, date, author, state, number of lines added/deleted, and log message). Options -d, -l, -s, and -w select revisions by their intersection, while -b and -r select by their union. Only revisions matching all specified criteria are printed.

参数

-r _REV_
Specific revision(s).
-d _DATE_
Date selection.
-h
Header only.
-t
Header and description.
-s _STATE_
By state.
-w _AUTHOR_
By author.
-b
Default branch only.
-R
Print RCS file name only.
-N
Do not print symbolic names.
-L
Ignore RCS files with no locks set.
-l
Locked revisions only.
-V
Print RCS version number.
-z _zone_
Specify date output format and default time zone.

FAQ

What is the rlog command used for?

rlog prints information about RCS files. Without options, rlog prints the complete log: header information (RCS file name, working file, head revision, default branch, access list, locks, symbolic names, comment leader, total revisions) followed by entries for each revision (number, date, author, state, number of lines added/deleted, and log message). Options -d, -l, -s, and -w select revisions by their intersection, while -b and -r select by their union. Only revisions matching all specified criteria are printed.

How do I run a basic rlog example?

Run `rlog [file.c]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r _REV_ do in rlog?

Specific revision(s).