diff options
Diffstat (limited to 'usr/src/tools/scripts/webrev.1')
-rw-r--r-- | usr/src/tools/scripts/webrev.1 | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/usr/src/tools/scripts/webrev.1 b/usr/src/tools/scripts/webrev.1 index e83acd80f8..566ce1e959 100644 --- a/usr/src/tools/scripts/webrev.1 +++ b/usr/src/tools/scripts/webrev.1 @@ -22,7 +22,7 @@ .\" Use is subject to license terms. .\" .\" -.TH webrev 1 "22 Feb 2010" +.TH webrev 1 "6 Dec 2010" .SH NAME webrev \- Generate HTML codereview materials .SH SYNOPSIS @@ -60,7 +60,7 @@ Note that the -l option is only applicable to TeamWare workspaces. .B webrev builds a set of HTML files suitable for performing code review of source changes in a web browser. -It supports Mercurial, Subversion and Teamware repositories. +It supports Mercurial, Git, Subversion and Teamware repositories. At its most basic, usage is: .nf $ webrev @@ -174,9 +174,22 @@ or to reference a teamware flp (file list program). In the case of Mercurial \fBwebrev\fR will attempt to use the output from the .BR hg (1) -"hg root" to identify the workspace root, and the +"hg root" command to identify the workspace root, and the "hg path default" command to identify the parent workspace. +.SS Git +In the case of Git \fBwebrev\fR will attempt to use the output from the +.BR git (1) +"git rev-parse --git-dir" command to identify the workspace root, and will +attempt to use the remote branch which the current branch is tracking as the +parent, if none is specified 'origin/master' will be used. + +The parent specified when using git is, in all cases, a git 'tree-ish' and +never an actual git repository, remote or otherwise. Anything specifiable to +git as a tree-ish should, similarly, be specifiable as a parent for webrev. +This includes branches, explicit revisions, reflog entries, etc. See +.BR git-rev-parse (1) + .SS Subversion In the case of Subversion \fBwebrev\fR will attempt to use the output from the @@ -458,6 +471,7 @@ This will remove just the \fIbugfix.onnv\fR directory. .BR putback "(1)," .BR workspace "(1)," .BR hg "(1)," +.BR git "(1)," .BR ssh_config "(4)," .BR svn "(1)," .BR which_scm "(1)" |