123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- '\" t
- .\" Title: git-map-branches
- .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
- .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
- .\" Date: 05/03/2019
- .\" Manual: Chromium depot_tools Manual
- .\" Source: depot_tools e58cce6c
- .\" Language: English
- .\"
- .TH "GIT\-MAP\-BRANCHES" "1" "05/03/2019" "depot_tools e58cce6c" "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-map-branches \- Helper script to display all local git branches with \(oqupstream\(cq hierarchy in colorized terminal format\&.
- .SH "SYNOPSIS"
- .sp
- .nf
- \fIgit map\-branches\fR
- .fi
- .sp
- .SH "DESCRIPTION"
- .sp
- Git map\-branches displays all local branches such that:
- .sp
- .RS 4
- .ie n \{\
- \h'-04'\(bu\h'+03'\c
- .\}
- .el \{\
- .sp -1
- .IP \(bu 2.3
- .\}
- Current branch is
- cyan\&.
- .sp
- .RS 4
- .ie n \{\
- \h'-04'\(bu\h'+03'\c
- .\}
- .el \{\
- .sp -1
- .IP \(bu 2.3
- .\}
- The branch which will be modified with git\-commit is denoted with an asterisk (*) after the name\&.
- .RE
- .RE
- .sp
- .RS 4
- .ie n \{\
- \h'-04'\(bu\h'+03'\c
- .\}
- .el \{\
- .sp -1
- .IP \(bu 2.3
- .\}
- Local branches are
- green\&.
- .RE
- .sp
- .RS 4
- .ie n \{\
- \h'-04'\(bu\h'+03'\c
- .\}
- .el \{\
- .sp -1
- .IP \(bu 2.3
- .\}
- Remote branches are
- red
- (usually, the root of all other branches)\&.
- .RE
- .sp
- .RS 4
- .ie n \{\
- \h'-04'\(bu\h'+03'\c
- .\}
- .el \{\
- .sp -1
- .IP \(bu 2.3
- .\}
- \fIbranch\-heads\fR
- branches are
- blue\&.
- .RE
- .sp
- .RS 4
- .ie n \{\
- \h'-04'\(bu\h'+03'\c
- .\}
- .el \{\
- .sp -1
- .IP \(bu 2.3
- .\}
- {NO UPSTREAM}
- is a special placeholder in
- magenta\&.
- .sp
- .RS 4
- .ie n \{\
- \h'-04'\(bu\h'+03'\c
- .\}
- .el \{\
- .sp -1
- .IP \(bu 2.3
- .\}
- Branches which have this as their parent are usually misconfigured, and should be assigned a parent by checking out the branch and running git branch \-\-set\-upstream\-to=<correct parent branch>\&.
- .RE
- .RE
- .if n \{\
- .sp
- .\}
- .RS 4
- .it 1 an-trap
- .nr an-no-space-flag 1
- .nr an-break-flag 1
- .br
- .ps +1
- \fBNote\fR
- .ps -1
- .br
- .sp
- If multiple branches are on the same commit, they will all be cyan\&.
- .sp .5v
- .RE
- .SH "OPTIONS"
- .PP
- \-\-no\-color
- .RS 4
- Turn off colors\&.
- .RE
- .PP
- \-v
- .RS 4
- Be more verbose\&. Pass once to show tracking info, twice for hash and review URL, thrice for review status\&.
- .RE
- .SH "EXAMPLE"
- .sp
- Given the hypothetical demo repo in \fBgit-map\fR(1)\*(Aqs EXAMPLE section, and assuming that the frozen_changes branch was currently checked out, running \fIgit map\-branches\fR would result in an output like:
- .sp
- .sp
- .if n \{\
- .RS 4
- .\}
- .nf
- \fB$ git map\-branches\fR
- {NO_UPSTREAM}
- no_upstream
- origin/master
- cool_feature
- subfeature
- fixit
- \fB frozen_branch *
- $ git map\-branches \-v\fR
- {NO_UPSTREAM}
- no_upstream
- origin/master
- cool_feature [ ahead 4 ]
- subfeature [ ahead 2 | behind 1 ]
- fixit [ ahead 2 ]
- \fB frozen_branch * [ ahead 3 ]\fR
- .fi
- .if n \{\
- .RE
- .\}
- .sp
- .SH "SUGGESTED ALIASES"
- .sp
- Some common short\-hand aliases\&. Feel free to add these to your \fI~/\&.gitconfig\fR file\&.
- .sp
- .if n \{\
- .RS 4
- .\}
- .nf
- [alias]
- git bmap = map\-branches
- .fi
- .if n \{\
- .RE
- .\}
- .sp
- .SH "SEE ALSO"
- .sp
- \fBgit-map\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
|