You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
3.8 KiB
Groff
110 lines
3.8 KiB
Groff
'\" t
|
|
.\" Title: git-drover
|
|
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
|
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
|
.\" Date: 08/25/2014
|
|
.\" Manual: Chromium depot_tools Manual
|
|
.\" Source: depot_tools f0a4926
|
|
.\" Language: English
|
|
.\"
|
|
.TH "GIT\-DROVER" "1" "08/25/2014" "depot_tools f0a4926" "Chromium depot_tools Manual"
|
|
.\" -----------------------------------------------------------------
|
|
.\" * Define some portability stuff
|
|
.\" -----------------------------------------------------------------
|
|
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
.\" http://bugs.debian.org/507673
|
|
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
.ie \n(.g .ds Aq \(aq
|
|
.el .ds Aq '
|
|
.\" -----------------------------------------------------------------
|
|
.\" * set default formatting
|
|
.\" -----------------------------------------------------------------
|
|
.\" disable hyphenation
|
|
.nh
|
|
.\" disable justification (adjust text to left margin only)
|
|
.ad l
|
|
.\" -----------------------------------------------------------------
|
|
.\" * MAIN CONTENT STARTS HERE *
|
|
.\" -----------------------------------------------------------------
|
|
.SH "NAME"
|
|
git-drover \- Apply a commit from the trunk to a release branch, or from one release branch to another\&.
|
|
.SH "SYNOPSIS"
|
|
.sp
|
|
.nf
|
|
\fIgit drover\fR
|
|
.fi
|
|
.sp
|
|
.SH "DESCRIPTION"
|
|
.sp
|
|
git drover is NOT IMPLEMENTED yet\&. See the EXAMPLE section for the equivalent sequence of commands to run\&.
|
|
.SH "EXAMPLE"
|
|
.sp
|
|
Before working with branches, you must \*(Aqgclient sync \-\-with_branch_heads\*(Aq at least once to fetch the branches\&.
|
|
.sp
|
|
.if n \{\
|
|
.RS 4
|
|
.\}
|
|
.nf
|
|
# Make sure we have the most up\-to\-date branch sources\&.
|
|
\fB$ git fetch\fR
|
|
|
|
# Here\*(Aqs the commit we want to \*(Aqdrover\*(Aq\&.
|
|
\fB$ git log \-n 1 \-\-pretty=fuller\fR
|
|
commit fd935aae549962611c2f178dc9026f23ae2ad9bd
|
|
Author: some\&.committer <some\&.committer@chromium\&.org>
|
|
AuthorDate: Thu Apr 10 08:54:46 2014 +0000
|
|
Commit: some\&.committer <some\&.committer@chromium\&.org>
|
|
CommitDate: Thu Apr 10 08:54:46 2014 +0000
|
|
|
|
This change needs to go to branch 9999
|
|
|
|
# Checkout the branch we want to \*(Aqdrover\*(Aq to\&.
|
|
\fB$ git checkout \-b drover_9999 branch\-heads/9999\fR
|
|
Branch drover_9999 set up to track remote ref refs/branch\-heads/9999\&.
|
|
|
|
# Now do the \*(Aqdrover\*(Aq\&.
|
|
# IMPORTANT!!! Do Not leave off the \*(Aq\-x\*(Aq flag
|
|
\fB$ git cherry\-pick \-x fd935aae549962611c2f178dc9026f23ae2ad9bd\fR
|
|
[drover_9999 0f36796] This change needs to go to branch 9999
|
|
Author: some\&.committer <some\&.committer@chromium\&.org>
|
|
Date: Thu Apr 10 08:54:46 2014 +0000
|
|
1 file changed, 1 insertion(+)
|
|
create mode 100644 modified_file
|
|
|
|
# That took the code authored by some\&.commiter and commited it to the
|
|
# branch by branch\&.maintainer (us)\&.
|
|
\fB$ git log \-n 1 \-\-pretty=fuller\fR
|
|
commit 0f3679662379e7032957abcc7d63e96cec444ec7
|
|
Author: some\&.committer <some\&.committer@chromium\&.org>
|
|
AuthorDate: Thu Apr 10 08:54:46 2014 +0000
|
|
Commit: branch\&.maintainer <branch\&.maintainer@chromium\&.org>
|
|
CommitDate: Thu Apr 10 09:11:36 2014 +0000
|
|
|
|
This change needs to go to branch 9999
|
|
|
|
(cherry picked from commit fd935aae549962611c2f178dc9026f23ae2ad9bd)
|
|
|
|
# Looks good\&. Ship it!
|
|
\fB$ git cl upload\fR
|
|
# Get LGTM or TBR\&.
|
|
\fB$ git cl land\fR
|
|
# Or skip the LGTM/TBR and just \*(Aqgit cl land \-\-bypass\-hooks\*(Aq
|
|
.fi
|
|
.if n \{\
|
|
.RE
|
|
.\}
|
|
.sp
|
|
.SH "SEE ALSO"
|
|
.sp
|
|
\fBgit-cherry-pick\fR(1)
|
|
.SH "CHROMIUM DEPOT_TOOLS"
|
|
.sp
|
|
Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assist with the development of chromium and related projects\&. Download the tools from \m[blue]\fBhere\fR\m[]\&\s-2\u[1]\d\s+2\&.
|
|
.SH "NOTES"
|
|
.IP " 1." 4
|
|
here
|
|
.RS 4
|
|
\%https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
|
.RE
|