Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: man/man1/git-footers.1

Issue 521033002: Added git footers tool to parse conventional metadata from git commits (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Review comments Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « man/html/git-footers.html ('k') | man/src/_git-footers_desc.helper.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 '\" t
2 .\" Title: git-freeze
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5 .\" Date: 09/02/2014
6 .\" Manual: Chromium depot_tools Manual
7 .\" Source: depot_tools c9f28eb
8 .\" Language: English
9 .\"
10 .TH "GIT\-FREEZE" "1" "09/02/2014" "depot_tools c9f28eb" "Chromium depot_tools M anual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 git-footers \- Extract meta\-information expressed as footers in a commit messag e\&.
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 \fIgit footers\fR [\-\-key FOOTER] REF
36 \fIgit footers\fR [\-\-position | \-\-position\-ref | \-\-position\-num] REF
37 .fi
38 .sp
39 .SH "DESCRIPTION"
40 .sp
41 git footers extracts information included in commit messages as "footers", which are roughly like HTTP headers except they are at the end\&. For example, a comm it might look like:
42 .sp
43 .if n \{\
44 .RS 4
45 .\}
46 .nf
47 This is a fancy commit message\&.
48 .fi
49 .if n \{\
50 .RE
51 .\}
52 .sp
53 .if n \{\
54 .RS 4
55 .\}
56 .nf
57 Cr\-Commit\-Position: refs/heads/master@{#292272}
58 Tech\-Debt\-Introduced: 17 nanoMSOffices
59 .fi
60 .if n \{\
61 .RE
62 .\}
63 .sp
64 git footers knows how to extract this information\&.
65 .sp
66 Footers are order\-independent and can appear more than once\&. Thus they are tr eated as a multimap\&.
67 .SH "OPTIONS"
68 .sp
69 If no options are given, all footers are printed, with their names case\-normali zed\&.
70 .PP
71 \-\-key FOOTER
72 .RS 4
73 Extract all the headers associated with the given key, and print one per line\&. If there are no footers with this key, produces no output and exits successfull y\&.
74 .RE
75 .PP
76 \-\-position
77 .RS 4
78 Extract the Chrome commit position from the footers\&. This first attempts to ge t the value of the
79 Cr\-Commit\-Position
80 footer\&. If that doesn\(cqt exist then it tries a heuristic based on
81 Git\-Svn\-Id\&. Output is in one of the following forms:
82 .sp
83 .if n \{\
84 .RS 4
85 .\}
86 .nf
87 refs/heads/master@{#292272}
88 refs/branch\-heads/branchname
89 .fi
90 .if n \{\
91 .RE
92 .\}
93 .RE
94 .PP
95 \-\-position\-num
96 .RS 4
97 Extracts and prints the Chrome commit position number only (292272 in the exampl e above)\&. Exits with an error if one cannot be found\&.
98 .RE
99 .PP
100 \-\-position\-ref
101 .RS 4
102 Extracts and prints the Chrome commit position ref name only (ref/heads/master
103 or
104 refs/branch\-heads/branchname
105 in the example above)\&.
106 .RE
107 .SH "EXAMPLE"
108 .sp
109
110 .sp
111 .if n \{\
112 .RS 4
113 .\}
114 .nf
115 \fB$ git footers HEAD\fR
116 Tech\-Debt\-Introduced: \-4 microMSOffices
117 Tech\-Debt\-Introduced: 17 microMSOffices
118 Cr\-Commit\-Position: refs/heads/master@{#292272}
119 \fB$ git footers \-\-key Tech\-Debt\-Introduced HEAD\fR
120 \-4 microMSOffices
121 17 microMSOffices
122 \fB$ git footers \-\-position HEAD\fR
123 refs/heads/master@{#292272}
124 \fB$ git footers \-\-position\-num HEAD\fR
125 292272
126 \fB$ git footers \-\-position\-ref HEAD\fR
127 refs/heads/master
128 .fi
129 .if n \{\
130 .RE
131 .\}
132 .sp
133 .SH "SEE ALSO"
134 .sp
135 \fBgit-number\fR(1)
136 .SH "CHROMIUM DEPOT_TOOLS"
137 .sp
138 Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assi st with the development of chromium and related projects\&. Download the tools f rom \m[blue]\fBhere\fR\m[]\&\s-2\u[1]\d\s+2\&.
139 .SH "NOTES"
140 .IP " 1." 4
141 here
142 .RS 4
143 \%https://chromium.googlesource.com/chromium/tools/depot_tools.git
144 .RE
OLDNEW
« no previous file with comments | « man/html/git-footers.html ('k') | man/src/_git-footers_desc.helper.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698