Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
| 2 | "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
| 4 | <head> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 5 | <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 6 | <meta name="generator" content="AsciiDoc 8.6.9" /> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 7 | <title>git-log(1)</title> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 8 | <style type="text/css"> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 9 | /* Shared CSS for AsciiDoc xhtml11 and html5 backends */ |
| 10 | |
| 11 | /* Default font. */ |
| 12 | body { |
| 13 | font-family: Georgia,serif; |
| 14 | } |
| 15 | |
| 16 | /* Title font. */ |
| 17 | h1, h2, h3, h4, h5, h6, |
| 18 | div.title, caption.title, |
| 19 | thead, p.table.header, |
| 20 | #toctitle, |
| 21 | #author, #revnumber, #revdate, #revremark, |
| 22 | #footer { |
| 23 | font-family: Arial,Helvetica,sans-serif; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | body { |
| 27 | margin: 1em 5% 1em 5%; |
| 28 | } |
| 29 | |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 30 | a { |
| 31 | color: blue; |
| 32 | text-decoration: underline; |
| 33 | } |
| 34 | a:visited { |
| 35 | color: fuchsia; |
| 36 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 37 | |
| 38 | em { |
| 39 | font-style: italic; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 40 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | strong { |
| 44 | font-weight: bold; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 45 | color: #083194; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 46 | } |
| 47 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 48 | h1, h2, h3, h4, h5, h6 { |
| 49 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 50 | margin-top: 1.2em; |
| 51 | margin-bottom: 0.5em; |
| 52 | line-height: 1.3; |
| 53 | } |
| 54 | |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 55 | h1, h2, h3 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 56 | border-bottom: 2px solid silver; |
| 57 | } |
| 58 | h2 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 59 | padding-top: 0.5em; |
| 60 | } |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 61 | h3 { |
| 62 | float: left; |
| 63 | } |
| 64 | h3 + * { |
| 65 | clear: left; |
| 66 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 67 | h5 { |
| 68 | font-size: 1.0em; |
| 69 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 70 | |
| 71 | div.sectionbody { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 72 | margin-left: 0; |
| 73 | } |
| 74 | |
| 75 | hr { |
| 76 | border: 1px solid silver; |
| 77 | } |
| 78 | |
| 79 | p { |
| 80 | margin-top: 0.5em; |
| 81 | margin-bottom: 0.5em; |
| 82 | } |
| 83 | |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 84 | ul, ol, li > p { |
| 85 | margin-top: 0; |
| 86 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 87 | ul > li { color: #aaa; } |
| 88 | ul > li > * { color: black; } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 89 | |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 90 | .monospaced, code, pre { |
| 91 | font-family: "Courier New", Courier, monospace; |
| 92 | font-size: inherit; |
| 93 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 94 | padding: 0; |
| 95 | margin: 0; |
| 96 | } |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 97 | pre { |
| 98 | white-space: pre-wrap; |
| 99 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 100 | |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 101 | #author { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 102 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 103 | font-weight: bold; |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 104 | font-size: 1.1em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 105 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 106 | #email { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 107 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 108 | #revnumber, #revdate, #revremark { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 109 | } |
| 110 | |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 111 | #footer { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 112 | font-size: small; |
| 113 | border-top: 2px solid silver; |
| 114 | padding-top: 0.5em; |
| 115 | margin-top: 4.0em; |
| 116 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 117 | #footer-text { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 118 | float: left; |
| 119 | padding-bottom: 0.5em; |
| 120 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 121 | #footer-badges { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 122 | float: right; |
| 123 | padding-bottom: 0.5em; |
| 124 | } |
| 125 | |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 126 | #preamble { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 127 | margin-top: 1.5em; |
| 128 | margin-bottom: 1.5em; |
| 129 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 130 | div.imageblock, div.exampleblock, div.verseblock, |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 131 | div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock, |
| 132 | div.admonitionblock { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 133 | margin-top: 1.0em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 134 | margin-bottom: 1.5em; |
| 135 | } |
| 136 | div.admonitionblock { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 137 | margin-top: 2.0em; |
| 138 | margin-bottom: 2.0em; |
| 139 | margin-right: 10%; |
| 140 | color: #606060; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | div.content { /* Block element content. */ |
| 144 | padding: 0; |
| 145 | } |
| 146 | |
| 147 | /* Block element titles. */ |
| 148 | div.title, caption.title { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 149 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 150 | font-weight: bold; |
| 151 | text-align: left; |
| 152 | margin-top: 1.0em; |
| 153 | margin-bottom: 0.5em; |
| 154 | } |
| 155 | div.title + * { |
| 156 | margin-top: 0; |
| 157 | } |
| 158 | |
| 159 | td div.title:first-child { |
| 160 | margin-top: 0.0em; |
| 161 | } |
| 162 | div.content div.title:first-child { |
| 163 | margin-top: 0.0em; |
| 164 | } |
| 165 | div.content + div.title { |
| 166 | margin-top: 0.0em; |
| 167 | } |
| 168 | |
| 169 | div.sidebarblock > div.content { |
| 170 | background: #ffffee; |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 171 | border: 1px solid #dddddd; |
| 172 | border-left: 4px solid #f0f0f0; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 173 | padding: 0.5em; |
| 174 | } |
| 175 | |
| 176 | div.listingblock > div.content { |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 177 | border: 1px solid #dddddd; |
| 178 | border-left: 5px solid #f0f0f0; |
| 179 | background: #f8f8f8; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 180 | padding: 0.5em; |
| 181 | } |
| 182 | |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 183 | div.quoteblock, div.verseblock { |
| 184 | padding-left: 1.0em; |
| 185 | margin-left: 1.0em; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 186 | margin-right: 10%; |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 187 | border-left: 5px solid #f0f0f0; |
| 188 | color: #888; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 189 | } |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 190 | |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 191 | div.quoteblock > div.attribution { |
| 192 | padding-top: 0.5em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 193 | text-align: right; |
| 194 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 195 | |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 196 | div.verseblock > pre.content { |
| 197 | font-family: inherit; |
| 198 | font-size: inherit; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 199 | } |
| 200 | div.verseblock > div.attribution { |
| 201 | padding-top: 0.75em; |
| 202 | text-align: left; |
| 203 | } |
| 204 | /* DEPRECATED: Pre version 8.2.7 verse style literal block. */ |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 205 | div.verseblock + div.attribution { |
| 206 | text-align: left; |
| 207 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 208 | |
| 209 | div.admonitionblock .icon { |
| 210 | vertical-align: top; |
| 211 | font-size: 1.1em; |
| 212 | font-weight: bold; |
| 213 | text-decoration: underline; |
| 214 | color: #527bbd; |
| 215 | padding-right: 0.5em; |
| 216 | } |
| 217 | div.admonitionblock td.content { |
| 218 | padding-left: 0.5em; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 219 | border-left: 3px solid #dddddd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 220 | } |
| 221 | |
| 222 | div.exampleblock > div.content { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 223 | border-left: 3px solid #dddddd; |
| 224 | padding-left: 0.5em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 225 | } |
| 226 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 227 | div.imageblock div.content { padding-left: 0; } |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 228 | span.image img { border-style: none; vertical-align: text-bottom; } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 229 | a.image:visited { color: white; } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 230 | |
| 231 | dl { |
| 232 | margin-top: 0.8em; |
| 233 | margin-bottom: 0.8em; |
| 234 | } |
| 235 | dt { |
| 236 | margin-top: 0.5em; |
| 237 | margin-bottom: 0; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 238 | font-style: normal; |
| 239 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 240 | } |
| 241 | dd > *:first-child { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 242 | margin-top: 0.1em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 243 | } |
| 244 | |
| 245 | ul, ol { |
| 246 | list-style-position: outside; |
| 247 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 248 | ol.arabic { |
| 249 | list-style-type: decimal; |
| 250 | } |
| 251 | ol.loweralpha { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 252 | list-style-type: lower-alpha; |
| 253 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 254 | ol.upperalpha { |
| 255 | list-style-type: upper-alpha; |
| 256 | } |
| 257 | ol.lowerroman { |
| 258 | list-style-type: lower-roman; |
| 259 | } |
| 260 | ol.upperroman { |
| 261 | list-style-type: upper-roman; |
| 262 | } |
| 263 | |
| 264 | div.compact ul, div.compact ol, |
| 265 | div.compact p, div.compact p, |
| 266 | div.compact div, div.compact div { |
| 267 | margin-top: 0.1em; |
| 268 | margin-bottom: 0.1em; |
| 269 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 270 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 271 | tfoot { |
| 272 | font-weight: bold; |
| 273 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 274 | td > div.verse { |
| 275 | white-space: pre; |
| 276 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 277 | |
| 278 | div.hdlist { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 279 | margin-top: 0.8em; |
| 280 | margin-bottom: 0.8em; |
| 281 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 282 | div.hdlist tr { |
| 283 | padding-bottom: 15px; |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 284 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 285 | dt.hdlist1.strong, td.hdlist1.strong { |
| 286 | font-weight: bold; |
| 287 | } |
| 288 | td.hdlist1 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 289 | vertical-align: top; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 290 | font-style: normal; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 291 | padding-right: 0.8em; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 292 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 293 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 294 | td.hdlist2 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 295 | vertical-align: top; |
| 296 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 297 | div.hdlist.compact tr { |
| 298 | margin: 0; |
| 299 | padding-bottom: 0; |
| 300 | } |
| 301 | |
| 302 | .comment { |
| 303 | background: yellow; |
| 304 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 305 | |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 306 | .footnote, .footnoteref { |
| 307 | font-size: 0.8em; |
| 308 | } |
| 309 | |
| 310 | span.footnote, span.footnoteref { |
| 311 | vertical-align: super; |
| 312 | } |
| 313 | |
| 314 | #footnotes { |
| 315 | margin: 20px 0 20px 0; |
| 316 | padding: 7px 0 0 0; |
| 317 | } |
| 318 | |
| 319 | #footnotes div.footnote { |
| 320 | margin: 0 0 5px 0; |
| 321 | } |
| 322 | |
| 323 | #footnotes hr { |
| 324 | border: none; |
| 325 | border-top: 1px solid silver; |
| 326 | height: 1px; |
| 327 | text-align: left; |
| 328 | margin-left: 0; |
| 329 | width: 20%; |
| 330 | min-width: 100px; |
| 331 | } |
| 332 | |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 333 | div.colist td { |
| 334 | padding-right: 0.5em; |
| 335 | padding-bottom: 0.3em; |
| 336 | vertical-align: top; |
| 337 | } |
| 338 | div.colist td img { |
| 339 | margin-top: 0.3em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 340 | } |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 341 | |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 342 | @media print { |
| 343 | #footer-badges { display: none; } |
| 344 | } |
| 345 | |
| 346 | #toc { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 347 | margin-bottom: 2.5em; |
| 348 | } |
| 349 | |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 350 | #toctitle { |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 351 | color: #527bbd; |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 352 | font-size: 1.1em; |
| 353 | font-weight: bold; |
| 354 | margin-top: 1.0em; |
| 355 | margin-bottom: 0.1em; |
| 356 | } |
| 357 | |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 358 | div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 { |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 359 | margin-top: 0; |
| 360 | margin-bottom: 0; |
| 361 | } |
| 362 | div.toclevel2 { |
| 363 | margin-left: 2em; |
| 364 | font-size: 0.9em; |
| 365 | } |
| 366 | div.toclevel3 { |
| 367 | margin-left: 4em; |
| 368 | font-size: 0.9em; |
| 369 | } |
| 370 | div.toclevel4 { |
| 371 | margin-left: 6em; |
| 372 | font-size: 0.9em; |
| 373 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 374 | |
| 375 | span.aqua { color: aqua; } |
| 376 | span.black { color: black; } |
| 377 | span.blue { color: blue; } |
| 378 | span.fuchsia { color: fuchsia; } |
| 379 | span.gray { color: gray; } |
| 380 | span.green { color: green; } |
| 381 | span.lime { color: lime; } |
| 382 | span.maroon { color: maroon; } |
| 383 | span.navy { color: navy; } |
| 384 | span.olive { color: olive; } |
| 385 | span.purple { color: purple; } |
| 386 | span.red { color: red; } |
| 387 | span.silver { color: silver; } |
| 388 | span.teal { color: teal; } |
| 389 | span.white { color: white; } |
| 390 | span.yellow { color: yellow; } |
| 391 | |
| 392 | span.aqua-background { background: aqua; } |
| 393 | span.black-background { background: black; } |
| 394 | span.blue-background { background: blue; } |
| 395 | span.fuchsia-background { background: fuchsia; } |
| 396 | span.gray-background { background: gray; } |
| 397 | span.green-background { background: green; } |
| 398 | span.lime-background { background: lime; } |
| 399 | span.maroon-background { background: maroon; } |
| 400 | span.navy-background { background: navy; } |
| 401 | span.olive-background { background: olive; } |
| 402 | span.purple-background { background: purple; } |
| 403 | span.red-background { background: red; } |
| 404 | span.silver-background { background: silver; } |
| 405 | span.teal-background { background: teal; } |
| 406 | span.white-background { background: white; } |
| 407 | span.yellow-background { background: yellow; } |
| 408 | |
| 409 | span.big { font-size: 2em; } |
| 410 | span.small { font-size: 0.6em; } |
| 411 | |
| 412 | span.underline { text-decoration: underline; } |
| 413 | span.overline { text-decoration: overline; } |
| 414 | span.line-through { text-decoration: line-through; } |
| 415 | |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 416 | div.unbreakable { page-break-inside: avoid; } |
| 417 | |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 418 | |
| 419 | /* |
| 420 | * xhtml11 specific |
| 421 | * |
| 422 | * */ |
| 423 | |
| 424 | div.tableblock { |
| 425 | margin-top: 1.0em; |
| 426 | margin-bottom: 1.5em; |
| 427 | } |
| 428 | div.tableblock > table { |
| 429 | border: 3px solid #527bbd; |
| 430 | } |
| 431 | thead, p.table.header { |
| 432 | font-weight: bold; |
| 433 | color: #527bbd; |
| 434 | } |
| 435 | p.table { |
| 436 | margin-top: 0; |
| 437 | } |
| 438 | /* Because the table frame attribute is overriden by CSS in most browsers. */ |
| 439 | div.tableblock > table[frame="void"] { |
| 440 | border-style: none; |
| 441 | } |
| 442 | div.tableblock > table[frame="hsides"] { |
| 443 | border-left-style: none; |
| 444 | border-right-style: none; |
| 445 | } |
| 446 | div.tableblock > table[frame="vsides"] { |
| 447 | border-top-style: none; |
| 448 | border-bottom-style: none; |
| 449 | } |
| 450 | |
| 451 | |
| 452 | /* |
| 453 | * html5 specific |
| 454 | * |
| 455 | * */ |
| 456 | |
| 457 | table.tableblock { |
| 458 | margin-top: 1.0em; |
| 459 | margin-bottom: 1.5em; |
| 460 | } |
| 461 | thead, p.tableblock.header { |
| 462 | font-weight: bold; |
| 463 | color: #527bbd; |
| 464 | } |
| 465 | p.tableblock { |
| 466 | margin-top: 0; |
| 467 | } |
| 468 | table.tableblock { |
| 469 | border-width: 3px; |
| 470 | border-spacing: 0px; |
| 471 | border-style: solid; |
| 472 | border-color: #527bbd; |
| 473 | border-collapse: collapse; |
| 474 | } |
| 475 | th.tableblock, td.tableblock { |
| 476 | border-width: 1px; |
| 477 | padding: 4px; |
| 478 | border-style: solid; |
| 479 | border-color: #527bbd; |
| 480 | } |
| 481 | |
| 482 | table.tableblock.frame-topbot { |
| 483 | border-left-style: hidden; |
| 484 | border-right-style: hidden; |
| 485 | } |
| 486 | table.tableblock.frame-sides { |
| 487 | border-top-style: hidden; |
| 488 | border-bottom-style: hidden; |
| 489 | } |
| 490 | table.tableblock.frame-none { |
| 491 | border-style: hidden; |
| 492 | } |
| 493 | |
| 494 | th.tableblock.halign-left, td.tableblock.halign-left { |
| 495 | text-align: left; |
| 496 | } |
| 497 | th.tableblock.halign-center, td.tableblock.halign-center { |
| 498 | text-align: center; |
| 499 | } |
| 500 | th.tableblock.halign-right, td.tableblock.halign-right { |
| 501 | text-align: right; |
| 502 | } |
| 503 | |
| 504 | th.tableblock.valign-top, td.tableblock.valign-top { |
| 505 | vertical-align: top; |
| 506 | } |
| 507 | th.tableblock.valign-middle, td.tableblock.valign-middle { |
| 508 | vertical-align: middle; |
| 509 | } |
| 510 | th.tableblock.valign-bottom, td.tableblock.valign-bottom { |
| 511 | vertical-align: bottom; |
| 512 | } |
| 513 | |
| 514 | |
| 515 | /* |
| 516 | * manpage specific |
| 517 | * |
| 518 | * */ |
| 519 | |
| 520 | body.manpage h1 { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 521 | padding-top: 0.5em; |
| 522 | padding-bottom: 0.5em; |
| 523 | border-top: 2px solid silver; |
| 524 | border-bottom: 2px solid silver; |
| 525 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 526 | body.manpage h2 { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 527 | border-style: none; |
| 528 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 529 | body.manpage div.sectionbody { |
| 530 | margin-left: 3em; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 531 | } |
| 532 | |
| 533 | @media print { |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 534 | body.manpage div#toc { display: none; } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 535 | } |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 536 | |
| 537 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 538 | </style> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 539 | <script type="text/javascript"> |
| 540 | /*<![CDATA[*/ |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 541 | var asciidoc = { // Namespace. |
| 542 | |
| 543 | ///////////////////////////////////////////////////////////////////// |
| 544 | // Table Of Contents generator |
| 545 | ///////////////////////////////////////////////////////////////////// |
| 546 | |
| 547 | /* Author: Mihai Bazon, September 2002 |
| 548 | * http://students.infoiasi.ro/~mishoo |
| 549 | * |
| 550 | * Table Of Content generator |
| 551 | * Version: 0.4 |
| 552 | * |
| 553 | * Feel free to use this script under the terms of the GNU General Public |
| 554 | * License, as long as you do not remove or alter this notice. |
| 555 | */ |
| 556 | |
| 557 | /* modified by Troy D. Hanson, September 2006. License: GPL */ |
| 558 | /* modified by Stuart Rackham, 2006, 2009. License: GPL */ |
| 559 | |
| 560 | // toclevels = 1..4. |
| 561 | toc: function (toclevels) { |
| 562 | |
| 563 | function getText(el) { |
| 564 | var text = ""; |
| 565 | for (var i = el.firstChild; i != null; i = i.nextSibling) { |
| 566 | if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants. |
| 567 | text += i.data; |
| 568 | else if (i.firstChild != null) |
| 569 | text += getText(i); |
| 570 | } |
| 571 | return text; |
| 572 | } |
| 573 | |
| 574 | function TocEntry(el, text, toclevel) { |
| 575 | this.element = el; |
| 576 | this.text = text; |
| 577 | this.toclevel = toclevel; |
| 578 | } |
| 579 | |
| 580 | function tocEntries(el, toclevels) { |
| 581 | var result = new Array; |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 582 | var re = new RegExp('[hH]([1-'+(toclevels+1)+'])'); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 583 | // Function that scans the DOM tree for header elements (the DOM2 |
| 584 | // nodeIterator API would be a better technique but not supported by all |
| 585 | // browsers). |
| 586 | var iterate = function (el) { |
| 587 | for (var i = el.firstChild; i != null; i = i.nextSibling) { |
| 588 | if (i.nodeType == 1 /* Node.ELEMENT_NODE */) { |
| 589 | var mo = re.exec(i.tagName); |
| 590 | if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") { |
| 591 | result[result.length] = new TocEntry(i, getText(i), mo[1]-1); |
| 592 | } |
| 593 | iterate(i); |
| 594 | } |
| 595 | } |
| 596 | } |
| 597 | iterate(el); |
| 598 | return result; |
| 599 | } |
| 600 | |
| 601 | var toc = document.getElementById("toc"); |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 602 | if (!toc) { |
| 603 | return; |
| 604 | } |
| 605 | |
| 606 | // Delete existing TOC entries in case we're reloading the TOC. |
| 607 | var tocEntriesToRemove = []; |
| 608 | var i; |
| 609 | for (i = 0; i < toc.childNodes.length; i++) { |
| 610 | var entry = toc.childNodes[i]; |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 611 | if (entry.nodeName.toLowerCase() == 'div' |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 612 | && entry.getAttribute("class") |
| 613 | && entry.getAttribute("class").match(/^toclevel/)) |
| 614 | tocEntriesToRemove.push(entry); |
| 615 | } |
| 616 | for (i = 0; i < tocEntriesToRemove.length; i++) { |
| 617 | toc.removeChild(tocEntriesToRemove[i]); |
| 618 | } |
| 619 | |
| 620 | // Rebuild TOC entries. |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 621 | var entries = tocEntries(document.getElementById("content"), toclevels); |
| 622 | for (var i = 0; i < entries.length; ++i) { |
| 623 | var entry = entries[i]; |
| 624 | if (entry.element.id == "") |
| 625 | entry.element.id = "_toc_" + i; |
| 626 | var a = document.createElement("a"); |
| 627 | a.href = "#" + entry.element.id; |
| 628 | a.appendChild(document.createTextNode(entry.text)); |
| 629 | var div = document.createElement("div"); |
| 630 | div.appendChild(a); |
| 631 | div.className = "toclevel" + entry.toclevel; |
| 632 | toc.appendChild(div); |
| 633 | } |
| 634 | if (entries.length == 0) |
| 635 | toc.parentNode.removeChild(toc); |
| 636 | }, |
| 637 | |
| 638 | |
| 639 | ///////////////////////////////////////////////////////////////////// |
| 640 | // Footnotes generator |
| 641 | ///////////////////////////////////////////////////////////////////// |
| 642 | |
| 643 | /* Based on footnote generation code from: |
| 644 | * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html |
| 645 | */ |
| 646 | |
| 647 | footnotes: function () { |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 648 | // Delete existing footnote entries in case we're reloading the footnodes. |
| 649 | var i; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 650 | var noteholder = document.getElementById("footnotes"); |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 651 | if (!noteholder) { |
| 652 | return; |
| 653 | } |
| 654 | var entriesToRemove = []; |
| 655 | for (i = 0; i < noteholder.childNodes.length; i++) { |
| 656 | var entry = noteholder.childNodes[i]; |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 657 | if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote") |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 658 | entriesToRemove.push(entry); |
| 659 | } |
| 660 | for (i = 0; i < entriesToRemove.length; i++) { |
| 661 | noteholder.removeChild(entriesToRemove[i]); |
| 662 | } |
| 663 | |
| 664 | // Rebuild footnote entries. |
| 665 | var cont = document.getElementById("content"); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 666 | var spans = cont.getElementsByTagName("span"); |
| 667 | var refs = {}; |
| 668 | var n = 0; |
| 669 | for (i=0; i<spans.length; i++) { |
| 670 | if (spans[i].className == "footnote") { |
| 671 | n++; |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 672 | var note = spans[i].getAttribute("data-note"); |
| 673 | if (!note) { |
| 674 | // Use [\s\S] in place of . so multi-line matches work. |
| 675 | // Because JavaScript has no s (dotall) regex flag. |
| 676 | note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1]; |
| 677 | spans[i].innerHTML = |
| 678 | "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n + |
| 679 | "' title='View footnote' class='footnote'>" + n + "</a>]"; |
| 680 | spans[i].setAttribute("data-note", note); |
| 681 | } |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 682 | noteholder.innerHTML += |
| 683 | "<div class='footnote' id='_footnote_" + n + "'>" + |
| 684 | "<a href='#_footnoteref_" + n + "' title='Return to text'>" + |
| 685 | n + "</a>. " + note + "</div>"; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 686 | var id =spans[i].getAttribute("id"); |
| 687 | if (id != null) refs["#"+id] = n; |
| 688 | } |
| 689 | } |
| 690 | if (n == 0) |
| 691 | noteholder.parentNode.removeChild(noteholder); |
| 692 | else { |
| 693 | // Process footnoterefs. |
| 694 | for (i=0; i<spans.length; i++) { |
| 695 | if (spans[i].className == "footnoteref") { |
| 696 | var href = spans[i].getElementsByTagName("a")[0].getAttribute("href"); |
| 697 | href = href.match(/#.*/)[0]; // Because IE return full URL. |
| 698 | n = refs[href]; |
| 699 | spans[i].innerHTML = |
| 700 | "[<a href='#_footnote_" + n + |
| 701 | "' title='View footnote' class='footnote'>" + n + "</a>]"; |
| 702 | } |
| 703 | } |
| 704 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 705 | }, |
| 706 | |
| 707 | install: function(toclevels) { |
| 708 | var timerId; |
| 709 | |
| 710 | function reinstall() { |
| 711 | asciidoc.footnotes(); |
| 712 | if (toclevels) { |
| 713 | asciidoc.toc(toclevels); |
| 714 | } |
| 715 | } |
| 716 | |
| 717 | function reinstallAndRemoveTimer() { |
| 718 | clearInterval(timerId); |
| 719 | reinstall(); |
| 720 | } |
| 721 | |
| 722 | timerId = setInterval(reinstall, 500); |
| 723 | if (document.addEventListener) |
| 724 | document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false); |
| 725 | else |
| 726 | window.onload = reinstallAndRemoveTimer; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 727 | } |
| 728 | |
| 729 | } |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 730 | asciidoc.install(); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 731 | /*]]>*/ |
| 732 | </script> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 733 | </head> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 734 | <body class="manpage"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 735 | <div id="header"> |
| 736 | <h1> |
| 737 | git-log(1) Manual Page |
| 738 | </h1> |
| 739 | <h2>NAME</h2> |
| 740 | <div class="sectionbody"> |
| 741 | <p>git-log - |
| 742 | Show commit logs |
| 743 | </p> |
| 744 | </div> |
| 745 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 746 | <div id="content"> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 747 | <div class="sect1"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 748 | <h2 id="_synopsis">SYNOPSIS</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 749 | <div class="sectionbody"> |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 750 | <div class="verseblock"> |
Junio C Hamano | f26c77e | 2013-04-27 00:06:04 | [diff] [blame] | 751 | <pre class="content"><em>git log</em> [<options>] [<revision range>] [[--] <path>…]</pre> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 752 | <div class="attribution"> |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 753 | </div></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 754 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 755 | </div> |
| 756 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 757 | <h2 id="_description">DESCRIPTION</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 758 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 759 | <div class="paragraph"><p>Shows the commit logs.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 760 | <div class="paragraph"><p>The command takes options applicable to the <code>git rev-list</code> |
Junio C Hamano | ba7c8d8 | 2006-04-15 06:17:42 | [diff] [blame] | 761 | command to control what is shown and how, and options applicable to |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 762 | the <code>git diff-*</code> commands to control how the changes |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 763 | each commit introduces are shown.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 764 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 765 | </div> |
| 766 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 767 | <h2 id="_options">OPTIONS</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 768 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 769 | <div class="dlist"><dl> |
| 770 | <dt class="hdlist1"> |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 771 | --follow |
| 772 | </dt> |
| 773 | <dd> |
| 774 | <p> |
| 775 | Continue listing the history of a file beyond renames |
| 776 | (works only for a single file). |
| 777 | </p> |
| 778 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 779 | <dt class="hdlist1"> |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 780 | --no-decorate |
| 781 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 782 | <dt class="hdlist1"> |
Junio C Hamano | 37cf408 | 2016-05-30 01:22:14 | [diff] [blame] | 783 | --decorate[=short|full|auto|no] |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 784 | </dt> |
| 785 | <dd> |
| 786 | <p> |
| 787 | Print out the ref names of any commits that are shown. If <em>short</em> is |
| 788 | specified, the ref name prefixes <em>refs/heads/</em>, <em>refs/tags/</em> and |
| 789 | <em>refs/remotes/</em> will not be printed. If <em>full</em> is specified, the |
Junio C Hamano | 37cf408 | 2016-05-30 01:22:14 | [diff] [blame] | 790 | full ref name (including prefix) will be printed. If <em>auto</em> is |
| 791 | specified, then if the output is going to a terminal, the ref names |
| 792 | are shown as if <em>short</em> were given, otherwise no ref names are |
| 793 | shown. The default option is <em>short</em>. |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 794 | </p> |
| 795 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 796 | <dt class="hdlist1"> |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 797 | --source |
| 798 | </dt> |
| 799 | <dd> |
| 800 | <p> |
| 801 | Print out the ref name given on the command line by which each |
| 802 | commit was reached. |
| 803 | </p> |
| 804 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 805 | <dt class="hdlist1"> |
Junio C Hamano | ce836cc | 2013-01-21 02:01:53 | [diff] [blame] | 806 | --use-mailmap |
| 807 | </dt> |
| 808 | <dd> |
| 809 | <p> |
| 810 | Use mailmap file to map author and committer names and email |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 811 | addresses to canonical real names and email addresses. See |
Junio C Hamano | ce836cc | 2013-01-21 02:01:53 | [diff] [blame] | 812 | <a href="git-shortlog.html">git-shortlog(1)</a>. |
| 813 | </p> |
| 814 | </dd> |
| 815 | <dt class="hdlist1"> |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 816 | --full-diff |
| 817 | </dt> |
| 818 | <dd> |
| 819 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 820 | Without this flag, <code>git log -p <path>...</code> shows commits that |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 821 | touch the specified paths, and diffs about the same specified |
| 822 | paths. With this, the full diff is shown for commits that touch |
| 823 | the specified paths; this means that "<path>…" limits only |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 824 | commits, and doesn’t limit diff for those commits. |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 825 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 826 | <div class="paragraph"><p>Note that this affects all diff-based output types, e.g. those |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 827 | produced by <code>--stat</code>, etc.</p></div> |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 828 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 829 | <dt class="hdlist1"> |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 830 | --log-size |
| 831 | </dt> |
| 832 | <dd> |
| 833 | <p> |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 834 | Include a line “log size <number>” in the output for each commit, |
| 835 | where <number> is the length of that commit’s message in bytes. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 836 | Intended to speed up tools that read log messages from <code>git log</code> |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 837 | output by allowing them to allocate space in advance. |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 838 | </p> |
| 839 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 840 | <dt class="hdlist1"> |
Junio C Hamano | 8eac268 | 2013-09-09 22:35:20 | [diff] [blame] | 841 | -L <start>,<end>:<file> |
| 842 | </dt> |
| 843 | <dt class="hdlist1"> |
Junio C Hamano | dd5004a | 2015-05-06 19:33:32 | [diff] [blame] | 844 | -L :<funcname>:<file> |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 845 | </dt> |
| 846 | <dd> |
| 847 | <p> |
| 848 | Trace the evolution of the line range given by "<start>,<end>" |
Junio C Hamano | dd5004a | 2015-05-06 19:33:32 | [diff] [blame] | 849 | (or the function name regex <funcname>) within the <file>. You may |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 850 | not give any pathspec limiters. This is currently limited to |
| 851 | a walk starting from a single revision, i.e., you may only |
| 852 | give zero or one positive revision arguments. |
| 853 | You can specify this option more than once. |
| 854 | </p> |
| 855 | <div class="paragraph"><p><start> and <end> can take one of these forms:</p></div> |
| 856 | <div class="ulist"><ul> |
| 857 | <li> |
| 858 | <p> |
| 859 | number |
| 860 | </p> |
| 861 | <div class="paragraph"><p>If <start> or <end> is a number, it specifies an |
| 862 | absolute line number (lines count from 1).</p></div> |
| 863 | </li> |
| 864 | <li> |
| 865 | <p> |
| 866 | /regex/ |
| 867 | </p> |
| 868 | <div class="paragraph"><p>This form will use the first line matching the given |
Junio C Hamano | 8eac268 | 2013-09-09 22:35:20 | [diff] [blame] | 869 | POSIX regex. If <start> is a regex, it will search from the end of |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 870 | the previous <code>-L</code> range, if any, otherwise from the start of file. |
Junio C Hamano | 8eac268 | 2013-09-09 22:35:20 | [diff] [blame] | 871 | If <start> is “^/regex/”, it will search from the start of file. |
| 872 | If <end> is a regex, it will search |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 873 | starting at the line given by <start>.</p></div> |
| 874 | </li> |
| 875 | <li> |
| 876 | <p> |
| 877 | +offset or -offset |
| 878 | </p> |
| 879 | <div class="paragraph"><p>This is only valid for <end> and will specify a number |
| 880 | of lines before or after the line given by <start>.</p></div> |
| 881 | </li> |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 882 | </ul></div> |
Junio C Hamano | dd5004a | 2015-05-06 19:33:32 | [diff] [blame] | 883 | <div class="paragraph"><p>If “:<funcname>” is given in place of <start> and <end>, it is a |
| 884 | regular expression that denotes the range from the first funcname line |
| 885 | that matches <funcname>, up to the next funcname line. “:<funcname>” |
| 886 | searches from the end of the previous <code>-L</code> range, if any, otherwise |
| 887 | from the start of file. “^:<funcname>” searches from the start of |
| 888 | file.</p></div> |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 889 | </dd> |
| 890 | <dt class="hdlist1"> |
Junio C Hamano | f26c77e | 2013-04-27 00:06:04 | [diff] [blame] | 891 | <revision range> |
| 892 | </dt> |
| 893 | <dd> |
| 894 | <p> |
| 895 | Show only commits in the specified revision range. When no |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 896 | <revision range> is specified, it defaults to <code>HEAD</code> (i.e. the |
| 897 | whole history leading to the current commit). <code>origin..HEAD</code> |
Junio C Hamano | f26c77e | 2013-04-27 00:06:04 | [diff] [blame] | 898 | specifies all the commits reachable from the current commit |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 899 | (i.e. <code>HEAD</code>), but not from <code>origin</code>. For a complete list of |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 900 | ways to spell <revision range>, see the <em>Specifying Ranges</em> |
Junio C Hamano | f26c77e | 2013-04-27 00:06:04 | [diff] [blame] | 901 | section of <a href="gitrevisions.html">gitrevisions(7)</a>. |
| 902 | </p> |
| 903 | </dd> |
| 904 | <dt class="hdlist1"> |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 905 | [--] <path>… |
| 906 | </dt> |
| 907 | <dd> |
| 908 | <p> |
Junio C Hamano | 5723afa | 2011-08-31 00:49:23 | [diff] [blame] | 909 | Show only commits that are enough to explain how the files |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 910 | that match the specified paths came to be. See <em>History |
| 911 | Simplification</em> below for details and other simplification |
Junio C Hamano | 5723afa | 2011-08-31 00:49:23 | [diff] [blame] | 912 | modes. |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 913 | </p> |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 914 | <div class="paragraph"><p>Paths may need to be prefixed with ‘`-- '’ to separate them from |
Junio C Hamano | f26c77e | 2013-04-27 00:06:04 | [diff] [blame] | 915 | options or the revision range, when confusion arises.</p></div> |
Junio C Hamano | 78e3a78 | 2010-07-15 22:24:45 | [diff] [blame] | 916 | </dd> |
| 917 | </dl></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 918 | <div class="sect2"> |
| 919 | <h3 id="_commit_limiting">Commit Limiting</h3> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 920 | <div class="paragraph"><p>Besides specifying a range of commits that should be listed using the |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 921 | special notations explained in the description, additional commit |
Junio C Hamano | 8ce35d7 | 2012-09-18 22:30:42 | [diff] [blame] | 922 | limiting may be applied.</p></div> |
| 923 | <div class="paragraph"><p>Using more options generally further limits the output (e.g. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 924 | <code>--since=<date1></code> limits to commits newer than <code><date1></code>, and using it |
| 925 | with <code>--grep=<pattern></code> further limits to commits whose log message |
| 926 | has a line that matches <code><pattern></code>), unless otherwise noted.</p></div> |
Junio C Hamano | 8ce35d7 | 2012-09-18 22:30:42 | [diff] [blame] | 927 | <div class="paragraph"><p>Note that these are applied before commit |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 928 | ordering and formatting options, such as <code>--reverse</code>.</p></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 929 | <div class="openblock"> |
| 930 | <div class="content"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 931 | <div class="dlist"><dl> |
| 932 | <dt class="hdlist1"> |
Junio C Hamano | 693e709 | 2012-09-12 22:56:53 | [diff] [blame] | 933 | -<number> |
| 934 | </dt> |
| 935 | <dt class="hdlist1"> |
| 936 | -n <number> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 937 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 938 | <dt class="hdlist1"> |
Junio C Hamano | b4a9ede | 2009-04-08 07:36:32 | [diff] [blame] | 939 | --max-count=<number> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 940 | </dt> |
| 941 | <dd> |
| 942 | <p> |
Junio C Hamano | c5be4cc | 2011-03-09 07:20:43 | [diff] [blame] | 943 | Limit the number of commits to output. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 944 | </p> |
| 945 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 946 | <dt class="hdlist1"> |
Junio C Hamano | b4a9ede | 2009-04-08 07:36:32 | [diff] [blame] | 947 | --skip=<number> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 948 | </dt> |
| 949 | <dd> |
| 950 | <p> |
| 951 | Skip <em>number</em> commits before starting to show the commit output. |
| 952 | </p> |
| 953 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 954 | <dt class="hdlist1"> |
Junio C Hamano | b4a9ede | 2009-04-08 07:36:32 | [diff] [blame] | 955 | --since=<date> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 956 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 957 | <dt class="hdlist1"> |
Junio C Hamano | b4a9ede | 2009-04-08 07:36:32 | [diff] [blame] | 958 | --after=<date> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 959 | </dt> |
| 960 | <dd> |
| 961 | <p> |
| 962 | Show commits more recent than a specific date. |
| 963 | </p> |
| 964 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 965 | <dt class="hdlist1"> |
Junio C Hamano | b4a9ede | 2009-04-08 07:36:32 | [diff] [blame] | 966 | --until=<date> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 967 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 968 | <dt class="hdlist1"> |
Junio C Hamano | b4a9ede | 2009-04-08 07:36:32 | [diff] [blame] | 969 | --before=<date> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 970 | </dt> |
| 971 | <dd> |
| 972 | <p> |
| 973 | Show commits older than a specific date. |
| 974 | </p> |
| 975 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 976 | <dt class="hdlist1"> |
Junio C Hamano | b4a9ede | 2009-04-08 07:36:32 | [diff] [blame] | 977 | --author=<pattern> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 978 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 979 | <dt class="hdlist1"> |
Junio C Hamano | b4a9ede | 2009-04-08 07:36:32 | [diff] [blame] | 980 | --committer=<pattern> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 981 | </dt> |
| 982 | <dd> |
| 983 | <p> |
| 984 | Limit the commits output to ones with author/committer |
Junio C Hamano | 8ce35d7 | 2012-09-18 22:30:42 | [diff] [blame] | 985 | header lines that match the specified pattern (regular |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 986 | expression). With more than one <code>--author=<pattern></code>, |
Junio C Hamano | 8ce35d7 | 2012-09-18 22:30:42 | [diff] [blame] | 987 | commits whose author matches any of the given patterns are |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 988 | chosen (similarly for multiple <code>--committer=<pattern></code>). |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 989 | </p> |
| 990 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 991 | <dt class="hdlist1"> |
Junio C Hamano | 9954ed7 | 2012-10-03 04:54:00 | [diff] [blame] | 992 | --grep-reflog=<pattern> |
| 993 | </dt> |
| 994 | <dd> |
| 995 | <p> |
| 996 | Limit the commits output to ones with reflog entries that |
| 997 | match the specified pattern (regular expression). With |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 998 | more than one <code>--grep-reflog</code>, commits whose reflog message |
Junio C Hamano | 9954ed7 | 2012-10-03 04:54:00 | [diff] [blame] | 999 | matches any of the given patterns are chosen. It is an |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1000 | error to use this option unless <code>--walk-reflogs</code> is in use. |
Junio C Hamano | 9954ed7 | 2012-10-03 04:54:00 | [diff] [blame] | 1001 | </p> |
| 1002 | </dd> |
| 1003 | <dt class="hdlist1"> |
Junio C Hamano | b4a9ede | 2009-04-08 07:36:32 | [diff] [blame] | 1004 | --grep=<pattern> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1005 | </dt> |
| 1006 | <dd> |
| 1007 | <p> |
| 1008 | Limit the commits output to ones with log message that |
Junio C Hamano | 8ce35d7 | 2012-09-18 22:30:42 | [diff] [blame] | 1009 | matches the specified pattern (regular expression). With |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1010 | more than one <code>--grep=<pattern></code>, commits whose message |
Junio C Hamano | 8ce35d7 | 2012-09-18 22:30:42 | [diff] [blame] | 1011 | matches any of the given patterns are chosen (but see |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1012 | <code>--all-match</code>). |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1013 | </p> |
Junio C Hamano | 8152abf | 2015-04-28 22:48:02 | [diff] [blame] | 1014 | <div class="paragraph"><p>When <code>--show-notes</code> is in effect, the message from the notes is |
| 1015 | matched as if it were part of the log message.</p></div> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1016 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1017 | <dt class="hdlist1"> |
Junio C Hamano | aa17c7c | 2008-11-03 04:36:58 | [diff] [blame] | 1018 | --all-match |
| 1019 | </dt> |
| 1020 | <dd> |
| 1021 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1022 | Limit the commits output to ones that match all given <code>--grep</code>, |
Junio C Hamano | 8ce35d7 | 2012-09-18 22:30:42 | [diff] [blame] | 1023 | instead of ones that match at least one. |
Junio C Hamano | aa17c7c | 2008-11-03 04:36:58 | [diff] [blame] | 1024 | </p> |
| 1025 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1026 | <dt class="hdlist1"> |
Junio C Hamano | 6bb32e6 | 2015-02-17 22:11:26 | [diff] [blame] | 1027 | --invert-grep |
| 1028 | </dt> |
| 1029 | <dd> |
| 1030 | <p> |
| 1031 | Limit the commits output to ones with log message that do not |
| 1032 | match the pattern specified with <code>--grep=<pattern></code>. |
| 1033 | </p> |
| 1034 | </dd> |
| 1035 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1036 | -i |
| 1037 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1038 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1039 | --regexp-ignore-case |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1040 | </dt> |
| 1041 | <dd> |
| 1042 | <p> |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 1043 | Match the regular expression limiting patterns without regard to letter |
| 1044 | case. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1045 | </p> |
| 1046 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1047 | <dt class="hdlist1"> |
Junio C Hamano | a129545 | 2012-11-13 22:32:04 | [diff] [blame] | 1048 | --basic-regexp |
| 1049 | </dt> |
| 1050 | <dd> |
| 1051 | <p> |
| 1052 | Consider the limiting patterns to be basic regular expressions; |
| 1053 | this is the default. |
| 1054 | </p> |
| 1055 | </dd> |
| 1056 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1057 | -E |
| 1058 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1059 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1060 | --extended-regexp |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1061 | </dt> |
| 1062 | <dd> |
| 1063 | <p> |
| 1064 | Consider the limiting patterns to be extended regular expressions |
| 1065 | instead of the default basic regular expressions. |
| 1066 | </p> |
| 1067 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1068 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1069 | -F |
| 1070 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1071 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1072 | --fixed-strings |
Junio C Hamano | 24bc09a | 2008-02-28 00:27:44 | [diff] [blame] | 1073 | </dt> |
| 1074 | <dd> |
| 1075 | <p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1076 | Consider the limiting patterns to be fixed strings (don’t interpret |
Junio C Hamano | 24bc09a | 2008-02-28 00:27:44 | [diff] [blame] | 1077 | pattern as a regular expression). |
| 1078 | </p> |
| 1079 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1080 | <dt class="hdlist1"> |
Junio C Hamano | a129545 | 2012-11-13 22:32:04 | [diff] [blame] | 1081 | --perl-regexp |
| 1082 | </dt> |
| 1083 | <dd> |
| 1084 | <p> |
Junio C Hamano | 222ed82 | 2017-06-02 06:24:06 | [diff] [blame] | 1085 | Consider the limiting patterns to be Perl-compatible regular |
| 1086 | expressions. |
Junio C Hamano | a129545 | 2012-11-13 22:32:04 | [diff] [blame] | 1087 | </p> |
Junio C Hamano | 222ed82 | 2017-06-02 06:24:06 | [diff] [blame] | 1088 | <div class="paragraph"><p>Support for these types of regular expressions is an optional |
| 1089 | compile-time dependency. If Git wasn’t compiled with support for them |
| 1090 | providing this option will cause it to die.</p></div> |
Junio C Hamano | a129545 | 2012-11-13 22:32:04 | [diff] [blame] | 1091 | </dd> |
| 1092 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1093 | --remove-empty |
| 1094 | </dt> |
| 1095 | <dd> |
| 1096 | <p> |
| 1097 | Stop when a given path disappears from the tree. |
| 1098 | </p> |
| 1099 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1100 | <dt class="hdlist1"> |
Junio C Hamano | 934e178 | 2009-07-16 06:59:15 | [diff] [blame] | 1101 | --merges |
| 1102 | </dt> |
| 1103 | <dd> |
| 1104 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1105 | Print only merge commits. This is exactly the same as <code>--min-parents=2</code>. |
Junio C Hamano | 934e178 | 2009-07-16 06:59:15 | [diff] [blame] | 1106 | </p> |
| 1107 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1108 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1109 | --no-merges |
| 1110 | </dt> |
| 1111 | <dd> |
| 1112 | <p> |
Junio C Hamano | f32ce26 | 2011-03-27 07:35:11 | [diff] [blame] | 1113 | Do not print commits with more than one parent. This is |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1114 | exactly the same as <code>--max-parents=1</code>. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1115 | </p> |
| 1116 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1117 | <dt class="hdlist1"> |
Junio C Hamano | f32ce26 | 2011-03-27 07:35:11 | [diff] [blame] | 1118 | --min-parents=<number> |
| 1119 | </dt> |
| 1120 | <dt class="hdlist1"> |
| 1121 | --max-parents=<number> |
| 1122 | </dt> |
| 1123 | <dt class="hdlist1"> |
| 1124 | --no-min-parents |
| 1125 | </dt> |
| 1126 | <dt class="hdlist1"> |
| 1127 | --no-max-parents |
| 1128 | </dt> |
| 1129 | <dd> |
| 1130 | <p> |
Junio C Hamano | c5bb3b3 | 2013-08-05 22:43:36 | [diff] [blame] | 1131 | Show only commits which have at least (or at most) that many parent |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1132 | commits. In particular, <code>--max-parents=1</code> is the same as <code>--no-merges</code>, |
| 1133 | <code>--min-parents=2</code> is the same as <code>--merges</code>. <code>--max-parents=0</code> |
| 1134 | gives all root commits and <code>--min-parents=3</code> all octopus merges. |
Junio C Hamano | f32ce26 | 2011-03-27 07:35:11 | [diff] [blame] | 1135 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1136 | <div class="paragraph"><p><code>--no-min-parents</code> and <code>--no-max-parents</code> reset these limits (to no limit) |
| 1137 | again. Equivalent forms are <code>--min-parents=0</code> (any commit has 0 or more |
| 1138 | parents) and <code>--max-parents=-1</code> (negative numbers denote no upper limit).</p></div> |
Junio C Hamano | f32ce26 | 2011-03-27 07:35:11 | [diff] [blame] | 1139 | </dd> |
| 1140 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1141 | --first-parent |
| 1142 | </dt> |
| 1143 | <dd> |
| 1144 | <p> |
| 1145 | Follow only the first parent commit upon seeing a merge |
| 1146 | commit. This option can give a better overview when |
| 1147 | viewing the evolution of a particular topic branch, |
| 1148 | because merges into a topic branch tend to be only about |
| 1149 | adjusting to updated upstream from time to time, and |
| 1150 | this option allows you to ignore the individual commits |
Junio C Hamano | ef57d1e | 2015-03-25 21:23:00 | [diff] [blame] | 1151 | brought in to your history by such a merge. Cannot be |
| 1152 | combined with --bisect. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1153 | </p> |
| 1154 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1155 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1156 | --not |
| 1157 | </dt> |
| 1158 | <dd> |
| 1159 | <p> |
| 1160 | Reverses the meaning of the <em>^</em> prefix (or lack thereof) |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1161 | for all following revision specifiers, up to the next <code>--not</code>. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1162 | </p> |
| 1163 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1164 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1165 | --all |
| 1166 | </dt> |
| 1167 | <dd> |
| 1168 | <p> |
Junio C Hamano | e89102f | 2017-02-15 23:18:15 | [diff] [blame] | 1169 | Pretend as if all the refs in <code>refs/</code>, along with <code>HEAD</code>, are |
| 1170 | listed on the command line as <em><commit></em>. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1171 | </p> |
| 1172 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1173 | <dt class="hdlist1"> |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1174 | --branches[=<pattern>] |
Junio C Hamano | 5081985 | 2008-11-19 02:07:56 | [diff] [blame] | 1175 | </dt> |
| 1176 | <dd> |
| 1177 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1178 | Pretend as if all the refs in <code>refs/heads</code> are listed |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1179 | on the command line as <em><commit></em>. If <em><pattern></em> is given, limit |
Junio C Hamano | 57827fb | 2010-01-23 03:02:50 | [diff] [blame] | 1180 | branches to ones matching given shell glob. If pattern lacks <em>?</em>, |
Junio C Hamano | 81d540a | 2012-03-02 19:52:47 | [diff] [blame] | 1181 | <em>*</em>, or <em>[</em>, <em>/*</em> at the end is implied. |
Junio C Hamano | 5081985 | 2008-11-19 02:07:56 | [diff] [blame] | 1182 | </p> |
| 1183 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1184 | <dt class="hdlist1"> |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1185 | --tags[=<pattern>] |
Junio C Hamano | 5081985 | 2008-11-19 02:07:56 | [diff] [blame] | 1186 | </dt> |
| 1187 | <dd> |
| 1188 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1189 | Pretend as if all the refs in <code>refs/tags</code> are listed |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1190 | on the command line as <em><commit></em>. If <em><pattern></em> is given, limit |
Junio C Hamano | 81d540a | 2012-03-02 19:52:47 | [diff] [blame] | 1191 | tags to ones matching given shell glob. If pattern lacks <em>?</em>, <em>*</em>, |
| 1192 | or <em>[</em>, <em>/*</em> at the end is implied. |
Junio C Hamano | 5081985 | 2008-11-19 02:07:56 | [diff] [blame] | 1193 | </p> |
| 1194 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1195 | <dt class="hdlist1"> |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1196 | --remotes[=<pattern>] |
Junio C Hamano | 5081985 | 2008-11-19 02:07:56 | [diff] [blame] | 1197 | </dt> |
| 1198 | <dd> |
| 1199 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1200 | Pretend as if all the refs in <code>refs/remotes</code> are listed |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1201 | on the command line as <em><commit></em>. If <em><pattern></em> is given, limit |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 1202 | remote-tracking branches to ones matching given shell glob. |
Junio C Hamano | 81d540a | 2012-03-02 19:52:47 | [diff] [blame] | 1203 | If pattern lacks <em>?</em>, <em>*</em>, or <em>[</em>, <em>/*</em> at the end is implied. |
Junio C Hamano | 57827fb | 2010-01-23 03:02:50 | [diff] [blame] | 1204 | </p> |
| 1205 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1206 | <dt class="hdlist1"> |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1207 | --glob=<glob-pattern> |
Junio C Hamano | 57827fb | 2010-01-23 03:02:50 | [diff] [blame] | 1208 | </dt> |
| 1209 | <dd> |
| 1210 | <p> |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1211 | Pretend as if all the refs matching shell glob <em><glob-pattern></em> |
Junio C Hamano | 57827fb | 2010-01-23 03:02:50 | [diff] [blame] | 1212 | are listed on the command line as <em><commit></em>. Leading <em>refs/</em>, |
Junio C Hamano | 81d540a | 2012-03-02 19:52:47 | [diff] [blame] | 1213 | is automatically prepended if missing. If pattern lacks <em>?</em>, <em>*</em>, |
| 1214 | or <em>[</em>, <em>/*</em> at the end is implied. |
Junio C Hamano | 5081985 | 2008-11-19 02:07:56 | [diff] [blame] | 1215 | </p> |
| 1216 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1217 | <dt class="hdlist1"> |
Junio C Hamano | f079f70 | 2013-12-06 23:43:18 | [diff] [blame] | 1218 | --exclude=<glob-pattern> |
| 1219 | </dt> |
| 1220 | <dd> |
| 1221 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1222 | Do not include refs matching <em><glob-pattern></em> that the next <code>--all</code>, |
| 1223 | <code>--branches</code>, <code>--tags</code>, <code>--remotes</code>, or <code>--glob</code> would otherwise |
Junio C Hamano | f079f70 | 2013-12-06 23:43:18 | [diff] [blame] | 1224 | consider. Repetitions of this option accumulate exclusion patterns |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1225 | up to the next <code>--all</code>, <code>--branches</code>, <code>--tags</code>, <code>--remotes</code>, or |
| 1226 | <code>--glob</code> option (other options or arguments do not clear |
Junio C Hamano | fb5ffde | 2014-11-04 22:38:56 | [diff] [blame] | 1227 | accumulated patterns). |
Junio C Hamano | f079f70 | 2013-12-06 23:43:18 | [diff] [blame] | 1228 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1229 | <div class="paragraph"><p>The patterns given should not begin with <code>refs/heads</code>, <code>refs/tags</code>, or |
| 1230 | <code>refs/remotes</code> when applied to <code>--branches</code>, <code>--tags</code>, or <code>--remotes</code>, |
| 1231 | respectively, and they must begin with <code>refs/</code> when applied to <code>--glob</code> |
| 1232 | or <code>--all</code>. If a trailing <em>/*</em> is intended, it must be given |
Junio C Hamano | f079f70 | 2013-12-06 23:43:18 | [diff] [blame] | 1233 | explicitly.</p></div> |
| 1234 | </dd> |
| 1235 | <dt class="hdlist1"> |
Junio C Hamano | 2a4bcbc | 2014-10-29 20:07:39 | [diff] [blame] | 1236 | --reflog |
| 1237 | </dt> |
| 1238 | <dd> |
| 1239 | <p> |
| 1240 | Pretend as if all objects mentioned by reflogs are listed on the |
| 1241 | command line as <code><commit></code>. |
| 1242 | </p> |
| 1243 | </dd> |
| 1244 | <dt class="hdlist1"> |
Junio C Hamano | 084228c | 2011-05-30 08:13:52 | [diff] [blame] | 1245 | --ignore-missing |
| 1246 | </dt> |
| 1247 | <dd> |
| 1248 | <p> |
| 1249 | Upon seeing an invalid object name in the input, pretend as if |
| 1250 | the bad input was not given. |
| 1251 | </p> |
| 1252 | </dd> |
| 1253 | <dt class="hdlist1"> |
Junio C Hamano | 5706e0b | 2009-11-24 10:54:16 | [diff] [blame] | 1254 | --bisect |
| 1255 | </dt> |
| 1256 | <dd> |
| 1257 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1258 | Pretend as if the bad bisection ref <code>refs/bisect/bad</code> |
| 1259 | was listed and as if it was followed by <code>--not</code> and the good |
| 1260 | bisection refs <code>refs/bisect/good-*</code> on the command |
Junio C Hamano | ef57d1e | 2015-03-25 21:23:00 | [diff] [blame] | 1261 | line. Cannot be combined with --first-parent. |
Junio C Hamano | 5706e0b | 2009-11-24 10:54:16 | [diff] [blame] | 1262 | </p> |
| 1263 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1264 | <dt class="hdlist1"> |
Junio C Hamano | 5706e0b | 2009-11-24 10:54:16 | [diff] [blame] | 1265 | --stdin |
| 1266 | </dt> |
| 1267 | <dd> |
| 1268 | <p> |
| 1269 | In addition to the <em><commit></em> listed on the command |
Junio C Hamano | 92d8037 | 2016-07-13 22:00:05 | [diff] [blame] | 1270 | line, read them from the standard input. If a <code>--</code> separator is |
Junio C Hamano | 5706e0b | 2009-11-24 10:54:16 | [diff] [blame] | 1271 | seen, stop reading commits and start reading paths to limit the |
| 1272 | result. |
| 1273 | </p> |
| 1274 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1275 | <dt class="hdlist1"> |
Junio C Hamano | 9a2fb2d | 2011-03-23 05:40:15 | [diff] [blame] | 1276 | --cherry-mark |
| 1277 | </dt> |
| 1278 | <dd> |
| 1279 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1280 | Like <code>--cherry-pick</code> (see below) but mark equivalent commits |
| 1281 | with <code>=</code> rather than omitting them, and inequivalent ones with <code>+</code>. |
Junio C Hamano | 9a2fb2d | 2011-03-23 05:40:15 | [diff] [blame] | 1282 | </p> |
| 1283 | </dd> |
| 1284 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1285 | --cherry-pick |
| 1286 | </dt> |
| 1287 | <dd> |
| 1288 | <p> |
| 1289 | Omit any commit that introduces the same change as |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 1290 | another commit on the “other side” when the set of |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1291 | commits are limited with symmetric difference. |
| 1292 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1293 | <div class="paragraph"><p>For example, if you have two branches, <code>A</code> and <code>B</code>, a usual way |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1294 | to list all commits on only one side of them is with |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1295 | <code>--left-right</code> (see the example below in the description of |
| 1296 | the <code>--left-right</code> option). However, it shows the commits that were |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 1297 | cherry-picked from the other branch (for example, “3rd on b” may be |
| 1298 | cherry-picked from branch A). With this option, such pairs of commits are |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1299 | excluded from the output.</p></div> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1300 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1301 | <dt class="hdlist1"> |
Junio C Hamano | 9a2fb2d | 2011-03-23 05:40:15 | [diff] [blame] | 1302 | --left-only |
| 1303 | </dt> |
| 1304 | <dt class="hdlist1"> |
| 1305 | --right-only |
| 1306 | </dt> |
| 1307 | <dd> |
| 1308 | <p> |
Junio C Hamano | cd45166 | 2016-09-13 00:54:09 | [diff] [blame] | 1309 | List only commits on the respective side of a symmetric difference, |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1310 | i.e. only those which would be marked <code><</code> resp. <code>></code> by |
| 1311 | <code>--left-right</code>. |
Junio C Hamano | 9a2fb2d | 2011-03-23 05:40:15 | [diff] [blame] | 1312 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1313 | <div class="paragraph"><p>For example, <code>--cherry-pick --right-only A...B</code> omits those |
| 1314 | commits from <code>B</code> which are in <code>A</code> or are patch-equivalent to a commit in |
| 1315 | <code>A</code>. In other words, this lists the <code>+</code> commits from <code>git cherry A B</code>. |
| 1316 | More precisely, <code>--cherry-pick --right-only --no-merges</code> gives the exact |
Junio C Hamano | 9a2fb2d | 2011-03-23 05:40:15 | [diff] [blame] | 1317 | list.</p></div> |
| 1318 | </dd> |
| 1319 | <dt class="hdlist1"> |
| 1320 | --cherry |
| 1321 | </dt> |
| 1322 | <dd> |
| 1323 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1324 | A synonym for <code>--right-only --cherry-mark --no-merges</code>; useful to |
Junio C Hamano | 9a2fb2d | 2011-03-23 05:40:15 | [diff] [blame] | 1325 | limit the output to the commits on our side and mark those that |
| 1326 | have been applied to the other side of a forked history with |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1327 | <code>git log --cherry upstream...mybranch</code>, similar to |
| 1328 | <code>git cherry upstream mybranch</code>. |
Junio C Hamano | 9a2fb2d | 2011-03-23 05:40:15 | [diff] [blame] | 1329 | </p> |
| 1330 | </dd> |
| 1331 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1332 | -g |
| 1333 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1334 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1335 | --walk-reflogs |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1336 | </dt> |
| 1337 | <dd> |
| 1338 | <p> |
| 1339 | Instead of walking the commit ancestry chain, walk |
| 1340 | reflog entries from the most recent one to older ones. |
| 1341 | When this option is used you cannot specify commits to |
| 1342 | exclude (that is, <em>^commit</em>, <em>commit1..commit2</em>, |
Junio C Hamano | d75148a | 2014-04-08 19:48:38 | [diff] [blame] | 1343 | and <em>commit1...commit2</em> notations cannot be used). |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1344 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1345 | <div class="paragraph"><p>With <code>--pretty</code> format other than <code>oneline</code> (for obvious reasons), |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1346 | this causes the output to have two extra lines of information |
Junio C Hamano | e548d1b | 2016-08-08 22:26:49 | [diff] [blame] | 1347 | taken from the reflog. The reflog designator in the output may be shown |
| 1348 | as <code>ref@{Nth}</code> (where <code>Nth</code> is the reverse-chronological index in the |
| 1349 | reflog) or as <code>ref@{timestamp}</code> (with the timestamp for that entry), |
| 1350 | depending on a few rules:</p></div> |
| 1351 | <div class="openblock"> |
| 1352 | <div class="content"> |
| 1353 | <div class="olist arabic"><ol class="arabic"> |
| 1354 | <li> |
| 1355 | <p> |
| 1356 | If the starting point is specified as <code>ref@{Nth}</code>, show the index |
| 1357 | format. |
| 1358 | </p> |
| 1359 | </li> |
| 1360 | <li> |
| 1361 | <p> |
| 1362 | If the starting point was specified as <code>ref@{now}</code>, show the |
| 1363 | timestamp format. |
| 1364 | </p> |
| 1365 | </li> |
| 1366 | <li> |
| 1367 | <p> |
| 1368 | If neither was used, but <code>--date</code> was given on the command line, show |
| 1369 | the timestamp in the format requested by <code>--date</code>. |
| 1370 | </p> |
| 1371 | </li> |
| 1372 | <li> |
| 1373 | <p> |
| 1374 | Otherwise, show the index format. |
| 1375 | </p> |
| 1376 | </li> |
| 1377 | </ol></div> |
| 1378 | </div></div> |
| 1379 | <div class="paragraph"><p>Under <code>--pretty=oneline</code>, the commit message is |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1380 | prefixed with this information on the same line. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1381 | This option cannot be combined with <code>--reverse</code>. |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1382 | See also <a href="git-reflog.html">git-reflog(1)</a>.</p></div> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1383 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1384 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1385 | --merge |
| 1386 | </dt> |
| 1387 | <dd> |
| 1388 | <p> |
| 1389 | After a failed merge, show refs that touch files having a |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1390 | conflict and don’t exist on all heads to merge. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1391 | </p> |
| 1392 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1393 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1394 | --boundary |
| 1395 | </dt> |
| 1396 | <dd> |
| 1397 | <p> |
Junio C Hamano | 27159f8 | 2013-06-14 17:19:22 | [diff] [blame] | 1398 | Output excluded boundary commits. Boundary commits are |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1399 | prefixed with <code>-</code>. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1400 | </p> |
| 1401 | </dd> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1402 | </dl></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 1403 | </div></div> |
| 1404 | </div> |
| 1405 | <div class="sect2"> |
| 1406 | <h3 id="_history_simplification">History Simplification</h3> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1407 | <div class="paragraph"><p>Sometimes you are only interested in parts of the history, for example the |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1408 | commits modifying a particular <path>. But there are two parts of |
| 1409 | <em>History Simplification</em>, one part is selecting the commits and the other |
| 1410 | is how to do it, as there are various strategies to simplify the history.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1411 | <div class="paragraph"><p>The following options select the commits to be shown:</p></div> |
| 1412 | <div class="dlist"><dl> |
| 1413 | <dt class="hdlist1"> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1414 | <paths> |
| 1415 | </dt> |
| 1416 | <dd> |
| 1417 | <p> |
| 1418 | Commits modifying the given <paths> are selected. |
| 1419 | </p> |
| 1420 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1421 | <dt class="hdlist1"> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1422 | --simplify-by-decoration |
| 1423 | </dt> |
| 1424 | <dd> |
| 1425 | <p> |
| 1426 | Commits that are referred by some branch or tag are selected. |
| 1427 | </p> |
| 1428 | </dd> |
| 1429 | </dl></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1430 | <div class="paragraph"><p>Note that extra commits can be shown to give a meaningful history.</p></div> |
| 1431 | <div class="paragraph"><p>The following options affect the way the simplification is performed:</p></div> |
| 1432 | <div class="dlist"><dl> |
| 1433 | <dt class="hdlist1"> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1434 | Default mode |
| 1435 | </dt> |
| 1436 | <dd> |
| 1437 | <p> |
| 1438 | Simplifies the history to the simplest history explaining the |
| 1439 | final state of the tree. Simplest because it prunes some side |
| 1440 | branches if the end result is the same (i.e. merging branches |
| 1441 | with the same content) |
| 1442 | </p> |
| 1443 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1444 | <dt class="hdlist1"> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1445 | --full-history |
| 1446 | </dt> |
| 1447 | <dd> |
| 1448 | <p> |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 1449 | Same as the default mode, but does not prune some history. |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1450 | </p> |
| 1451 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1452 | <dt class="hdlist1"> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1453 | --dense |
| 1454 | </dt> |
| 1455 | <dd> |
| 1456 | <p> |
| 1457 | Only the selected commits are shown, plus some to have a |
| 1458 | meaningful history. |
| 1459 | </p> |
| 1460 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1461 | <dt class="hdlist1"> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1462 | --sparse |
| 1463 | </dt> |
| 1464 | <dd> |
| 1465 | <p> |
| 1466 | All commits in the simplified history are shown. |
| 1467 | </p> |
| 1468 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1469 | <dt class="hdlist1"> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1470 | --simplify-merges |
| 1471 | </dt> |
| 1472 | <dd> |
| 1473 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1474 | Additional option to <code>--full-history</code> to remove some needless |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1475 | merges from the resulting history, as there are no selected |
| 1476 | commits contributing to this merge. |
| 1477 | </p> |
| 1478 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1479 | <dt class="hdlist1"> |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1480 | --ancestry-path |
| 1481 | </dt> |
| 1482 | <dd> |
| 1483 | <p> |
| 1484 | When given a range of commits to display (e.g. <em>commit1..commit2</em> |
| 1485 | or <em>commit2 ^commit1</em>), only display commits that exist |
| 1486 | directly on the ancestry chain between the <em>commit1</em> and |
| 1487 | <em>commit2</em>, i.e. commits that are both descendants of <em>commit1</em>, |
| 1488 | and ancestors of <em>commit2</em>. |
| 1489 | </p> |
| 1490 | </dd> |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1491 | </dl></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1492 | <div class="paragraph"><p>A more detailed explanation follows.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1493 | <div class="paragraph"><p>Suppose you specified <code>foo</code> as the <paths>. We shall call commits |
| 1494 | that modify <code>foo</code> !TREESAME, and the rest TREESAME. (In a diff |
| 1495 | filtered for <code>foo</code>, they look different and equal, respectively.)</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1496 | <div class="paragraph"><p>In the following, we will always refer to the same example history to |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1497 | illustrate the differences between simplification settings. We assume |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1498 | that you are filtering for a file <code>foo</code> in this commit graph:</p></div> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1499 | <div class="listingblock"> |
| 1500 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1501 | <pre><code> .-A---M---N---O---P---Q |
Junio C Hamano | 27159f8 | 2013-06-14 17:19:22 | [diff] [blame] | 1502 | / / / / / / |
| 1503 | I B C D E Y |
| 1504 | \ / / / / / |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1505 | `-------------' X</code></pre> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1506 | </div></div> |
Junio C Hamano | 27159f8 | 2013-06-14 17:19:22 | [diff] [blame] | 1507 | <div class="paragraph"><p>The horizontal line of history A---Q is taken to be the first parent of |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1508 | each merge. The commits are:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1509 | <div class="ulist"><ul> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1510 | <li> |
| 1511 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1512 | <code>I</code> is the initial commit, in which <code>foo</code> exists with contents |
| 1513 | “asdf”, and a file <code>quux</code> exists with contents “quux”. Initial |
| 1514 | commits are compared to an empty tree, so <code>I</code> is !TREESAME. |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1515 | </p> |
| 1516 | </li> |
| 1517 | <li> |
| 1518 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1519 | In <code>A</code>, <code>foo</code> contains just “foo”. |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1520 | </p> |
| 1521 | </li> |
| 1522 | <li> |
| 1523 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1524 | <code>B</code> contains the same change as <code>A</code>. Its merge <code>M</code> is trivial and |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1525 | hence TREESAME to all parents. |
| 1526 | </p> |
| 1527 | </li> |
| 1528 | <li> |
| 1529 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1530 | <code>C</code> does not change <code>foo</code>, but its merge <code>N</code> changes it to “foobar”, |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1531 | so it is not TREESAME to any parent. |
| 1532 | </p> |
| 1533 | </li> |
| 1534 | <li> |
| 1535 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1536 | <code>D</code> sets <code>foo</code> to “baz”. Its merge <code>O</code> combines the strings from |
| 1537 | <code>N</code> and <code>D</code> to “foobarbaz”; i.e., it is not TREESAME to any parent. |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1538 | </p> |
| 1539 | </li> |
| 1540 | <li> |
| 1541 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1542 | <code>E</code> changes <code>quux</code> to “xyzzy”, and its merge <code>P</code> combines the |
| 1543 | strings to “quux xyzzy”. <code>P</code> is TREESAME to <code>O</code>, but not to <code>E</code>. |
Junio C Hamano | 27159f8 | 2013-06-14 17:19:22 | [diff] [blame] | 1544 | </p> |
| 1545 | </li> |
| 1546 | <li> |
| 1547 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1548 | <code>X</code> is an independent root commit that added a new file <code>side</code>, and <code>Y</code> |
| 1549 | modified it. <code>Y</code> is TREESAME to <code>X</code>. Its merge <code>Q</code> added <code>side</code> to <code>P</code>, and |
| 1550 | <code>Q</code> is TREESAME to <code>P</code>, but not to <code>Y</code>. |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1551 | </p> |
| 1552 | </li> |
| 1553 | </ul></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1554 | <div class="paragraph"><p><code>rev-list</code> walks backwards through history, including or excluding |
| 1555 | commits based on whether <code>--full-history</code> and/or parent rewriting |
| 1556 | (via <code>--parents</code> or <code>--children</code>) are used. The following settings |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1557 | are available.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1558 | <div class="dlist"><dl> |
| 1559 | <dt class="hdlist1"> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1560 | Default mode |
| 1561 | </dt> |
| 1562 | <dd> |
| 1563 | <p> |
| 1564 | Commits are included if they are not TREESAME to any parent |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1565 | (though this can be changed, see <code>--sparse</code> below). If the |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1566 | commit was a merge, and it was TREESAME to one parent, follow |
| 1567 | only that parent. (Even if there are several TREESAME |
| 1568 | parents, follow only one of them.) Otherwise, follow all |
| 1569 | parents. |
| 1570 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1571 | <div class="paragraph"><p>This results in:</p></div> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1572 | <div class="listingblock"> |
| 1573 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1574 | <pre><code> .-A---N---O |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1575 | / / / |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1576 | I---------D</code></pre> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1577 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1578 | <div class="paragraph"><p>Note how the rule to only follow the TREESAME parent, if one is |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1579 | available, removed <code>B</code> from consideration entirely. <code>C</code> was |
| 1580 | considered via <code>N</code>, but is TREESAME. Root commits are compared to an |
| 1581 | empty tree, so <code>I</code> is !TREESAME.</p></div> |
| 1582 | <div class="paragraph"><p>Parent/child relations are only visible with <code>--parents</code>, but that does |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1583 | not affect the commits selected in default mode, so we have shown the |
| 1584 | parent lines.</p></div> |
| 1585 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1586 | <dt class="hdlist1"> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1587 | --full-history without parent rewriting |
| 1588 | </dt> |
| 1589 | <dd> |
| 1590 | <p> |
| 1591 | This mode differs from the default in one point: always follow |
| 1592 | all parents of a merge, even if it is TREESAME to one of them. |
| 1593 | Even if more than one side of the merge has commits that are |
| 1594 | included, this does not imply that the merge itself is! In |
| 1595 | the example, we get |
| 1596 | </p> |
| 1597 | <div class="listingblock"> |
| 1598 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1599 | <pre><code> I A B N D O P Q</code></pre> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1600 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1601 | <div class="paragraph"><p><code>M</code> was excluded because it is TREESAME to both parents. <code>E</code>, |
| 1602 | <code>C</code> and <code>B</code> were all walked, but only <code>B</code> was !TREESAME, so the others |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1603 | do not appear.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1604 | <div class="paragraph"><p>Note that without parent rewriting, it is not really possible to talk |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1605 | about the parent/child relationships between the commits, so we show |
| 1606 | them disconnected.</p></div> |
| 1607 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1608 | <dt class="hdlist1"> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1609 | --full-history with parent rewriting |
| 1610 | </dt> |
| 1611 | <dd> |
| 1612 | <p> |
| 1613 | Ordinary commits are only included if they are !TREESAME |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1614 | (though this can be changed, see <code>--sparse</code> below). |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1615 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1616 | <div class="paragraph"><p>Merges are always included. However, their parent list is rewritten: |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1617 | Along each parent, prune away commits that are not included |
| 1618 | themselves. This results in</p></div> |
| 1619 | <div class="listingblock"> |
| 1620 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1621 | <pre><code> .-A---M---N---O---P---Q |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1622 | / / / / / |
| 1623 | I B / D / |
| 1624 | \ / / / / |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1625 | `-------------'</code></pre> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1626 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1627 | <div class="paragraph"><p>Compare to <code>--full-history</code> without rewriting above. Note that <code>E</code> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1628 | was pruned away because it is TREESAME, but the parent list of P was |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1629 | rewritten to contain <code>E</code>'s parent <code>I</code>. The same happened for <code>C</code> and |
| 1630 | <code>N</code>, and <code>X</code>, <code>Y</code> and <code>Q</code>.</p></div> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1631 | </dd> |
| 1632 | </dl></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1633 | <div class="paragraph"><p>In addition to the above settings, you can change whether TREESAME |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1634 | affects inclusion:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1635 | <div class="dlist"><dl> |
| 1636 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1637 | --dense |
| 1638 | </dt> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1639 | <dd> |
| 1640 | <p> |
| 1641 | Commits that are walked are included if they are not TREESAME |
| 1642 | to any parent. |
| 1643 | </p> |
| 1644 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1645 | <dt class="hdlist1"> |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 1646 | --sparse |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1647 | </dt> |
| 1648 | <dd> |
| 1649 | <p> |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1650 | All commits that are walked are included. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1651 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1652 | <div class="paragraph"><p>Note that without <code>--full-history</code>, this still simplifies merges: if |
Junio C Hamano | a76cb0d | 2008-08-13 20:04:10 | [diff] [blame] | 1653 | one of the parents is TREESAME, we follow only that one, so the other |
| 1654 | sides of the merge are never walked.</p></div> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1655 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1656 | <dt class="hdlist1"> |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1657 | --simplify-merges |
| 1658 | </dt> |
| 1659 | <dd> |
| 1660 | <p> |
| 1661 | First, build a history graph in the same way that |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1662 | <code>--full-history</code> with parent rewriting does (see above). |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1663 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1664 | <div class="paragraph"><p>Then simplify each commit <code>C</code> to its replacement <code>C'</code> in the final |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1665 | history according to the following rules:</p></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 1666 | <div class="openblock"> |
| 1667 | <div class="content"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1668 | <div class="ulist"><ul> |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1669 | <li> |
| 1670 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1671 | Set <code>C'</code> to <code>C</code>. |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1672 | </p> |
| 1673 | </li> |
| 1674 | <li> |
| 1675 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1676 | Replace each parent <code>P</code> of <code>C'</code> with its simplification <code>P'</code>. In |
Junio C Hamano | 27159f8 | 2013-06-14 17:19:22 | [diff] [blame] | 1677 | the process, drop parents that are ancestors of other parents or that are |
| 1678 | root commits TREESAME to an empty tree, and remove duplicates, but take care |
| 1679 | to never drop all parents that we are TREESAME to. |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1680 | </p> |
| 1681 | </li> |
| 1682 | <li> |
| 1683 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1684 | If after this parent rewriting, <code>C'</code> is a root or merge commit (has |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1685 | zero or >1 parents), a boundary commit, or !TREESAME, it remains. |
| 1686 | Otherwise, it is replaced with its only parent. |
| 1687 | </p> |
| 1688 | </li> |
| 1689 | </ul></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 1690 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1691 | <div class="paragraph"><p>The effect of this is best shown by way of comparing to |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1692 | <code>--full-history</code> with parent rewriting. The example turns into:</p></div> |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1693 | <div class="listingblock"> |
| 1694 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1695 | <pre><code> .-A---M---N---O |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1696 | / / / |
| 1697 | I B D |
| 1698 | \ / / |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1699 | `---------'</code></pre> |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1700 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1701 | <div class="paragraph"><p>Note the major differences in <code>N</code>, <code>P</code>, and <code>Q</code> over <code>--full-history</code>:</p></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 1702 | <div class="openblock"> |
| 1703 | <div class="content"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1704 | <div class="ulist"><ul> |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1705 | <li> |
| 1706 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1707 | <code>N</code>'s parent list had <code>I</code> removed, because it is an ancestor of the |
| 1708 | other parent <code>M</code>. Still, <code>N</code> remained because it is !TREESAME. |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1709 | </p> |
| 1710 | </li> |
| 1711 | <li> |
| 1712 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1713 | <code>P</code>'s parent list similarly had <code>I</code> removed. <code>P</code> was then |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1714 | removed completely, because it had one parent and is TREESAME. |
| 1715 | </p> |
| 1716 | </li> |
Junio C Hamano | 27159f8 | 2013-06-14 17:19:22 | [diff] [blame] | 1717 | <li> |
| 1718 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1719 | <code>Q</code>'s parent list had <code>Y</code> simplified to <code>X</code>. <code>X</code> was then removed, because it |
| 1720 | was a TREESAME root. <code>Q</code> was then removed completely, because it had one |
Junio C Hamano | 27159f8 | 2013-06-14 17:19:22 | [diff] [blame] | 1721 | parent and is TREESAME. |
| 1722 | </p> |
| 1723 | </li> |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1724 | </ul></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 1725 | </div></div> |
Junio C Hamano | a2f4662 | 2008-09-03 05:20:31 | [diff] [blame] | 1726 | </dd> |
| 1727 | </dl></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1728 | <div class="paragraph"><p>Finally, there is a fifth simplification mode available:</p></div> |
| 1729 | <div class="dlist"><dl> |
| 1730 | <dt class="hdlist1"> |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1731 | --ancestry-path |
| 1732 | </dt> |
| 1733 | <dd> |
| 1734 | <p> |
| 1735 | Limit the displayed commits to those directly on the ancestry |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 1736 | chain between the “from” and “to” commits in the given commit |
| 1737 | range. I.e. only display commits that are ancestor of the “to” |
| 1738 | commit and descendants of the “from” commit. |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1739 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1740 | <div class="paragraph"><p>As an example use case, consider the following commit history:</p></div> |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1741 | <div class="listingblock"> |
| 1742 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1743 | <pre><code> D---E-------F |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1744 | / \ \ |
| 1745 | B---C---G---H---I---J |
| 1746 | / \ |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1747 | A-------K---------------L--M</code></pre> |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1748 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1749 | <div class="paragraph"><p>A regular <em>D..M</em> computes the set of commits that are ancestors of <code>M</code>, |
| 1750 | but excludes the ones that are ancestors of <code>D</code>. This is useful to see |
| 1751 | what happened to the history leading to <code>M</code> since <code>D</code>, in the sense |
| 1752 | that “what does <code>M</code> have that did not exist in <code>D</code>”. The result in this |
| 1753 | example would be all the commits, except <code>A</code> and <code>B</code> (and <code>D</code> itself, |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1754 | of course).</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1755 | <div class="paragraph"><p>When we want to find out what commits in <code>M</code> are contaminated with the |
| 1756 | bug introduced by <code>D</code> and need fixing, however, we might want to view |
| 1757 | only the subset of <em>D..M</em> that are actually descendants of <code>D</code>, i.e. |
| 1758 | excluding <code>C</code> and <code>K</code>. This is exactly what the <code>--ancestry-path</code> |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1759 | option does. Applied to the <em>D..M</em> range, it results in:</p></div> |
| 1760 | <div class="listingblock"> |
| 1761 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1762 | <pre><code> E-------F |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1763 | \ \ |
| 1764 | G---H---I---J |
| 1765 | \ |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1766 | L--M</code></pre> |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 1767 | </div></div> |
| 1768 | </dd> |
| 1769 | </dl></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1770 | <div class="paragraph"><p>The <code>--simplify-by-decoration</code> option allows you to view only the |
Junio C Hamano | 2836349 | 2008-11-14 08:26:31 | [diff] [blame] | 1771 | big picture of the topology of the history, by omitting commits |
| 1772 | that are not referenced by tags. Commits are marked as !TREESAME |
| 1773 | (in other words, kept after history simplification rules described |
| 1774 | above) if (1) they are referenced by tags, or (2) they change the |
| 1775 | contents of the paths given on the command line. All other |
| 1776 | commits are marked as TREESAME (subject to be simplified away).</p></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 1777 | </div> |
| 1778 | <div class="sect2"> |
| 1779 | <h3 id="_commit_ordering">Commit Ordering</h3> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1780 | <div class="paragraph"><p>By default, the commits are shown in reverse chronological order.</p></div> |
| 1781 | <div class="dlist"><dl> |
| 1782 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1783 | --date-order |
| 1784 | </dt> |
| 1785 | <dd> |
| 1786 | <p> |
Junio C Hamano | d031611 | 2012-08-22 19:55:29 | [diff] [blame] | 1787 | Show no parents before all of its children are shown, but |
| 1788 | otherwise show commits in the commit timestamp order. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1789 | </p> |
| 1790 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1791 | <dt class="hdlist1"> |
Junio C Hamano | a195230 | 2013-07-01 21:31:18 | [diff] [blame] | 1792 | --author-date-order |
| 1793 | </dt> |
| 1794 | <dd> |
| 1795 | <p> |
| 1796 | Show no parents before all of its children are shown, but |
| 1797 | otherwise show commits in the author timestamp order. |
| 1798 | </p> |
| 1799 | </dd> |
| 1800 | <dt class="hdlist1"> |
Junio C Hamano | d031611 | 2012-08-22 19:55:29 | [diff] [blame] | 1801 | --topo-order |
| 1802 | </dt> |
| 1803 | <dd> |
| 1804 | <p> |
| 1805 | Show no parents before all of its children are shown, and |
| 1806 | avoid showing commits on multiple lines of history |
| 1807 | intermixed. |
| 1808 | </p> |
| 1809 | <div class="paragraph"><p>For example, in a commit history like this:</p></div> |
| 1810 | <div class="listingblock"> |
| 1811 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1812 | <pre><code> ---1----2----4----7 |
Junio C Hamano | d031611 | 2012-08-22 19:55:29 | [diff] [blame] | 1813 | \ \ |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1814 | 3----5----6----8---</code></pre> |
Junio C Hamano | d031611 | 2012-08-22 19:55:29 | [diff] [blame] | 1815 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1816 | <div class="paragraph"><p>where the numbers denote the order of commit timestamps, <code>git |
| 1817 | rev-list</code> and friends with <code>--date-order</code> show the commits in the |
Junio C Hamano | d031611 | 2012-08-22 19:55:29 | [diff] [blame] | 1818 | timestamp order: 8 7 6 5 4 3 2 1.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1819 | <div class="paragraph"><p>With <code>--topo-order</code>, they would show 8 6 5 3 7 4 2 1 (or 8 7 4 2 6 5 |
Junio C Hamano | d031611 | 2012-08-22 19:55:29 | [diff] [blame] | 1820 | 3 1); some older commits are shown before newer ones in order to |
| 1821 | avoid showing the commits from two parallel development track mixed |
| 1822 | together.</p></div> |
| 1823 | </dd> |
| 1824 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1825 | --reverse |
| 1826 | </dt> |
| 1827 | <dd> |
| 1828 | <p> |
Junio C Hamano | f3ca7b8 | 2016-10-03 22:27:02 | [diff] [blame] | 1829 | Output the commits chosen to be shown (see Commit Limiting |
| 1830 | section above) in reverse order. Cannot be combined with |
| 1831 | <code>--walk-reflogs</code>. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1832 | </p> |
| 1833 | </dd> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1834 | </dl></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 1835 | </div> |
| 1836 | <div class="sect2"> |
| 1837 | <h3 id="_object_traversal">Object Traversal</h3> |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1838 | <div class="paragraph"><p>These options are mostly targeted for packing of Git repositories.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1839 | <div class="dlist"><dl> |
| 1840 | <dt class="hdlist1"> |
Junio C Hamano | eccdd4a | 2012-09-10 23:28:17 | [diff] [blame] | 1841 | --no-walk[=(sorted|unsorted)] |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1842 | </dt> |
| 1843 | <dd> |
| 1844 | <p> |
Junio C Hamano | eccdd4a | 2012-09-10 23:28:17 | [diff] [blame] | 1845 | Only show the given commits, but do not traverse their ancestors. |
| 1846 | This has no effect if a range is specified. If the argument |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1847 | <code>unsorted</code> is given, the commits are shown in the order they were |
| 1848 | given on the command line. Otherwise (if <code>sorted</code> or no argument |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 1849 | was given), the commits are shown in reverse chronological order |
Junio C Hamano | eccdd4a | 2012-09-10 23:28:17 | [diff] [blame] | 1850 | by commit time. |
Junio C Hamano | ef57d1e | 2015-03-25 21:23:00 | [diff] [blame] | 1851 | Cannot be combined with <code>--graph</code>. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1852 | </p> |
| 1853 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1854 | <dt class="hdlist1"> |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1855 | --do-walk |
| 1856 | </dt> |
| 1857 | <dd> |
| 1858 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1859 | Overrides a previous <code>--no-walk</code>. |
Junio C Hamano | b0e0295 | 2008-01-19 08:02:00 | [diff] [blame] | 1860 | </p> |
| 1861 | </dd> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1862 | </dl></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 1863 | </div> |
| 1864 | <div class="sect2"> |
| 1865 | <h3 id="_commit_formatting">Commit Formatting</h3> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1866 | <div class="dlist"><dl> |
| 1867 | <dt class="hdlist1"> |
| 1868 | --pretty[=<format>] |
| 1869 | </dt> |
| 1870 | <dt class="hdlist1"> |
| 1871 | --format=<format> |
| 1872 | </dt> |
| 1873 | <dd> |
| 1874 | <p> |
| 1875 | Pretty-print the contents of the commit logs in a given format, |
| 1876 | where <em><format></em> can be one of <em>oneline</em>, <em>short</em>, <em>medium</em>, |
Junio C Hamano | 6bb32e6 | 2015-02-17 22:11:26 | [diff] [blame] | 1877 | <em>full</em>, <em>fuller</em>, <em>email</em>, <em>raw</em>, <em>format:<string></em> |
| 1878 | and <em>tformat:<string></em>. When <em><format></em> is none of the above, |
| 1879 | and has <em>%placeholder</em> in it, it acts as if |
| 1880 | <em>--pretty=tformat:<format></em> were given. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1881 | </p> |
Junio C Hamano | 6bb32e6 | 2015-02-17 22:11:26 | [diff] [blame] | 1882 | <div class="paragraph"><p>See the "PRETTY FORMATS" section for some additional details for each |
| 1883 | format. When <em>=<format></em> part is omitted, it defaults to <em>medium</em>.</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1884 | <div class="paragraph"><p>Note: you can specify the default pretty format in the repository |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1885 | configuration (see <a href="git-config.html">git-config(1)</a>).</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1886 | </dd> |
| 1887 | <dt class="hdlist1"> |
| 1888 | --abbrev-commit |
| 1889 | </dt> |
| 1890 | <dd> |
| 1891 | <p> |
| 1892 | Instead of showing the full 40-byte hexadecimal commit object |
| 1893 | name, show only a partial prefix. Non default number of |
| 1894 | digits can be specified with "--abbrev=<n>" (which also modifies |
| 1895 | diff output, if it is displayed). |
| 1896 | </p> |
| 1897 | <div class="paragraph"><p>This should make "--pretty=oneline" a whole lot more readable for |
| 1898 | people using 80-column terminals.</p></div> |
| 1899 | </dd> |
| 1900 | <dt class="hdlist1"> |
Junio C Hamano | f93530e | 2011-05-25 23:59:59 | [diff] [blame] | 1901 | --no-abbrev-commit |
| 1902 | </dt> |
| 1903 | <dd> |
| 1904 | <p> |
| 1905 | Show the full 40-byte hexadecimal commit object name. This negates |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1906 | <code>--abbrev-commit</code> and those options which imply it such as |
Junio C Hamano | 042f214 | 2016-06-27 18:05:05 | [diff] [blame] | 1907 | "--oneline". It also overrides the <code>log.abbrevCommit</code> variable. |
Junio C Hamano | f93530e | 2011-05-25 23:59:59 | [diff] [blame] | 1908 | </p> |
| 1909 | </dd> |
| 1910 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1911 | --oneline |
| 1912 | </dt> |
| 1913 | <dd> |
| 1914 | <p> |
| 1915 | This is a shorthand for "--pretty=oneline --abbrev-commit" |
| 1916 | used together. |
| 1917 | </p> |
| 1918 | </dd> |
| 1919 | <dt class="hdlist1"> |
Junio C Hamano | c5bb3b3 | 2013-08-05 22:43:36 | [diff] [blame] | 1920 | --encoding=<encoding> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1921 | </dt> |
| 1922 | <dd> |
| 1923 | <p> |
| 1924 | The commit objects record the encoding used for the log message |
| 1925 | in their encoding header; this option can be used to tell the |
| 1926 | command to re-code the commit log message in the encoding |
| 1927 | preferred by the user. For non plumbing commands this |
Junio C Hamano | 823eebb | 2015-07-10 22:29:34 | [diff] [blame] | 1928 | defaults to UTF-8. Note that if an object claims to be encoded |
| 1929 | in <code>X</code> and we are outputting in <code>X</code>, we will output the object |
| 1930 | verbatim; this means that invalid sequences in the original |
| 1931 | commit may be copied to the output. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1932 | </p> |
| 1933 | </dd> |
| 1934 | <dt class="hdlist1"> |
Junio C Hamano | 5996b67 | 2016-04-13 22:01:41 | [diff] [blame] | 1935 | --expand-tabs=<n> |
| 1936 | </dt> |
| 1937 | <dt class="hdlist1"> |
| 1938 | --expand-tabs |
| 1939 | </dt> |
| 1940 | <dt class="hdlist1"> |
| 1941 | --no-expand-tabs |
| 1942 | </dt> |
| 1943 | <dd> |
| 1944 | <p> |
| 1945 | Perform a tab expansion (replace each tab with enough spaces |
| 1946 | to fill to the next display column that is multiple of <em><n></em>) |
| 1947 | in the log message before showing it in the output. |
| 1948 | <code>--expand-tabs</code> is a short-hand for <code>--expand-tabs=8</code>, and |
| 1949 | <code>--no-expand-tabs</code> is a short-hand for <code>--expand-tabs=0</code>, |
| 1950 | which disables tab expansion. |
| 1951 | </p> |
| 1952 | <div class="paragraph"><p>By default, tabs are expanded in pretty formats that indent the log |
| 1953 | message by 4 spaces (i.e. <em>medium</em>, which is the default, <em>full</em>, |
| 1954 | and <em>fuller</em>).</p></div> |
| 1955 | </dd> |
| 1956 | <dt class="hdlist1"> |
Junio C Hamano | 4e6ba27 | 2016-01-20 23:23:19 | [diff] [blame] | 1957 | --notes[=<treeish>] |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1958 | </dt> |
| 1959 | <dd> |
| 1960 | <p> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1961 | Show the notes (see <a href="git-notes.html">git-notes(1)</a>) that annotate the |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1962 | commit, when showing the commit log message. This is the default |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1963 | for <code>git log</code>, <code>git show</code> and <code>git whatchanged</code> commands when |
| 1964 | there is no <code>--pretty</code>, <code>--format</code>, or <code>--oneline</code> option given |
Junio C Hamano | 6003346 | 2011-05-03 00:48:43 | [diff] [blame] | 1965 | on the command line. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1966 | </p> |
Junio C Hamano | 6003346 | 2011-05-03 00:48:43 | [diff] [blame] | 1967 | <div class="paragraph"><p>By default, the notes shown are from the notes refs listed in the |
Junio C Hamano | 042f214 | 2016-06-27 18:05:05 | [diff] [blame] | 1968 | <code>core.notesRef</code> and <code>notes.displayRef</code> variables (or corresponding |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1969 | environment overrides). See <a href="git-config.html">git-config(1)</a> for more details.</p></div> |
Junio C Hamano | 4e6ba27 | 2016-01-20 23:23:19 | [diff] [blame] | 1970 | <div class="paragraph"><p>With an optional <em><treeish></em> argument, use the treeish to find the notes |
| 1971 | to display. The treeish can specify the full refname when it begins |
Junio C Hamano | 1f7c4a5 | 2015-10-14 22:15:51 | [diff] [blame] | 1972 | with <code>refs/notes/</code>; when it begins with <code>notes/</code>, <code>refs/</code> and otherwise |
| 1973 | <code>refs/notes/</code> is prefixed to form a full name of the ref.</p></div> |
Junio C Hamano | 6003346 | 2011-05-03 00:48:43 | [diff] [blame] | 1974 | <div class="paragraph"><p>Multiple --notes options can be combined to control which notes are |
| 1975 | being displayed. Examples: "--notes=foo" will show only notes from |
| 1976 | "refs/notes/foo"; "--notes=foo --notes" will show both notes from |
| 1977 | "refs/notes/foo" and from the default notes ref(s).</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1978 | </dd> |
| 1979 | <dt class="hdlist1"> |
Junio C Hamano | 6003346 | 2011-05-03 00:48:43 | [diff] [blame] | 1980 | --no-notes |
| 1981 | </dt> |
| 1982 | <dd> |
| 1983 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 1984 | Do not show notes. This negates the above <code>--notes</code> option, by |
Junio C Hamano | 6003346 | 2011-05-03 00:48:43 | [diff] [blame] | 1985 | resetting the list of notes refs from which notes are shown. |
| 1986 | Options are parsed in the order given on the command line, so e.g. |
| 1987 | "--notes --notes=foo --no-notes --notes=bar" will only show notes |
| 1988 | from "refs/notes/bar". |
| 1989 | </p> |
| 1990 | </dd> |
| 1991 | <dt class="hdlist1"> |
Junio C Hamano | 4e6ba27 | 2016-01-20 23:23:19 | [diff] [blame] | 1992 | --show-notes[=<treeish>] |
Junio C Hamano | 6003346 | 2011-05-03 00:48:43 | [diff] [blame] | 1993 | </dt> |
| 1994 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 1995 | --[no-]standard-notes |
| 1996 | </dt> |
| 1997 | <dd> |
| 1998 | <p> |
Junio C Hamano | 6003346 | 2011-05-03 00:48:43 | [diff] [blame] | 1999 | These options are deprecated. Use the above --notes/--no-notes |
| 2000 | options instead. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2001 | </p> |
| 2002 | </dd> |
| 2003 | <dt class="hdlist1"> |
Junio C Hamano | 0acb1ae | 2012-09-24 21:28:13 | [diff] [blame] | 2004 | --show-signature |
| 2005 | </dt> |
| 2006 | <dd> |
| 2007 | <p> |
| 2008 | Check the validity of a signed commit object by passing the signature |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2009 | to <code>gpg --verify</code> and show the output. |
Junio C Hamano | 0acb1ae | 2012-09-24 21:28:13 | [diff] [blame] | 2010 | </p> |
| 2011 | </dd> |
| 2012 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2013 | --relative-date |
| 2014 | </dt> |
| 2015 | <dd> |
| 2016 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2017 | Synonym for <code>--date=relative</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2018 | </p> |
| 2019 | </dd> |
| 2020 | <dt class="hdlist1"> |
Junio C Hamano | 1eb5609 | 2015-10-05 20:39:53 | [diff] [blame] | 2021 | --date=<format> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2022 | </dt> |
| 2023 | <dd> |
| 2024 | <p> |
| 2025 | Only takes effect for dates shown in human-readable format, such |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2026 | as when using <code>--pretty</code>. <code>log.date</code> config variable sets a default |
Junio C Hamano | 1eb5609 | 2015-10-05 20:39:53 | [diff] [blame] | 2027 | value for the log command’s <code>--date</code> option. By default, dates |
| 2028 | are shown in the original time zone (either committer’s or |
| 2029 | author’s). If <code>-local</code> is appended to the format (e.g., |
| 2030 | <code>iso-local</code>), the user’s local time zone is used instead. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2031 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2032 | <div class="paragraph"><p><code>--date=relative</code> shows dates relative to the current time, |
Junio C Hamano | e548d1b | 2016-08-08 22:26:49 | [diff] [blame] | 2033 | e.g. “2 hours ago”. The <code>-local</code> option has no effect for |
| 2034 | <code>--date=relative</code>.</p></div> |
Junio C Hamano | 1eb5609 | 2015-10-05 20:39:53 | [diff] [blame] | 2035 | <div class="paragraph"><p><code>--date=local</code> is an alias for <code>--date=default-local</code>.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2036 | <div class="paragraph"><p><code>--date=iso</code> (or <code>--date=iso8601</code>) shows timestamps in a ISO 8601-like format. |
| 2037 | The differences to the strict ISO 8601 format are:</p></div> |
| 2038 | <div class="ulist"><ul> |
| 2039 | <li> |
| 2040 | <p> |
| 2041 | a space instead of the <code>T</code> date/time delimiter |
| 2042 | </p> |
| 2043 | </li> |
| 2044 | <li> |
| 2045 | <p> |
| 2046 | a space between time and time zone |
| 2047 | </p> |
| 2048 | </li> |
| 2049 | <li> |
| 2050 | <p> |
| 2051 | no colon between hours and minutes of the time zone |
| 2052 | </p> |
| 2053 | </li> |
| 2054 | </ul></div> |
| 2055 | <div class="paragraph"><p><code>--date=iso-strict</code> (or <code>--date=iso8601-strict</code>) shows timestamps in strict |
| 2056 | ISO 8601 format.</p></div> |
| 2057 | <div class="paragraph"><p><code>--date=rfc</code> (or <code>--date=rfc2822</code>) shows timestamps in RFC 2822 |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 2058 | format, often found in email messages.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2059 | <div class="paragraph"><p><code>--date=short</code> shows only the date, but not the time, in <code>YYYY-MM-DD</code> format.</p></div> |
Junio C Hamano | e548d1b | 2016-08-08 22:26:49 | [diff] [blame] | 2060 | <div class="paragraph"><p><code>--date=raw</code> shows the date as seconds since the epoch (1970-01-01 |
| 2061 | 00:00:00 UTC), followed by a space, and then the timezone as an offset |
| 2062 | from UTC (a <code>+</code> or <code>-</code> with four digits; the first two are hours, and |
| 2063 | the second two are minutes). I.e., as if the timestamp were formatted |
| 2064 | with <code>strftime("%s %z")</code>). |
| 2065 | Note that the <code>-local</code> option does not affect the seconds-since-epoch |
| 2066 | value (which is always measured in UTC), but does switch the accompanying |
| 2067 | timezone value.</p></div> |
| 2068 | <div class="paragraph"><p><code>--date=unix</code> shows the date as a Unix epoch timestamp (seconds since |
| 2069 | 1970). As with <code>--raw</code>, this is always in UTC and therefore <code>-local</code> |
| 2070 | has no effect.</p></div> |
Junio C Hamano | d7ed404 | 2015-08-03 19:43:00 | [diff] [blame] | 2071 | <div class="paragraph"><p><code>--date=format:...</code> feeds the format <code>...</code> to your system <code>strftime</code>. |
| 2072 | Use <code>--date=format:%c</code> to show the date in your system locale’s |
| 2073 | preferred format. See the <code>strftime</code> manual for a complete list of |
Junio C Hamano | 1eb5609 | 2015-10-05 20:39:53 | [diff] [blame] | 2074 | format placeholders. When using <code>-local</code>, the correct syntax is |
| 2075 | <code>--date=format-local:...</code>.</p></div> |
| 2076 | <div class="paragraph"><p><code>--date=default</code> is the default format, and is similar to |
| 2077 | <code>--date=rfc2822</code>, with a few exceptions:</p></div> |
| 2078 | <div class="ulist"><ul> |
| 2079 | <li> |
| 2080 | <p> |
| 2081 | there is no comma after the day-of-week |
| 2082 | </p> |
| 2083 | </li> |
| 2084 | <li> |
| 2085 | <p> |
| 2086 | the time zone is omitted when the local time zone is used |
| 2087 | </p> |
| 2088 | </li> |
| 2089 | </ul></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2090 | </dd> |
| 2091 | <dt class="hdlist1"> |
| 2092 | --parents |
| 2093 | </dt> |
| 2094 | <dd> |
| 2095 | <p> |
| 2096 | Print also the parents of the commit (in the form "commit parent…"). |
| 2097 | Also enables parent rewriting, see <em>History Simplification</em> below. |
| 2098 | </p> |
| 2099 | </dd> |
| 2100 | <dt class="hdlist1"> |
| 2101 | --children |
| 2102 | </dt> |
| 2103 | <dd> |
| 2104 | <p> |
| 2105 | Print also the children of the commit (in the form "commit child…"). |
| 2106 | Also enables parent rewriting, see <em>History Simplification</em> below. |
| 2107 | </p> |
| 2108 | </dd> |
| 2109 | <dt class="hdlist1"> |
| 2110 | --left-right |
| 2111 | </dt> |
| 2112 | <dd> |
| 2113 | <p> |
Junio C Hamano | cd45166 | 2016-09-13 00:54:09 | [diff] [blame] | 2114 | Mark which side of a symmetric difference a commit is reachable from. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2115 | Commits from the left side are prefixed with <code><</code> and those from |
| 2116 | the right with <code>></code>. If combined with <code>--boundary</code>, those |
| 2117 | commits are prefixed with <code>-</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2118 | </p> |
| 2119 | <div class="paragraph"><p>For example, if you have this topology:</p></div> |
| 2120 | <div class="listingblock"> |
| 2121 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2122 | <pre><code> y---b---b branch B |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2123 | / \ / |
| 2124 | / . |
| 2125 | / / \ |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2126 | o---x---a---a branch A</code></pre> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2127 | </div></div> |
| 2128 | <div class="paragraph"><p>you would get an output like this:</p></div> |
| 2129 | <div class="listingblock"> |
| 2130 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2131 | <pre><code> $ git rev-list --left-right --boundary --pretty=oneline A...B |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2132 | |
| 2133 | >bbbbbbb... 3rd on b |
| 2134 | >bbbbbbb... 2nd on b |
| 2135 | <aaaaaaa... 3rd on a |
| 2136 | <aaaaaaa... 2nd on a |
| 2137 | -yyyyyyy... 1st on b |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2138 | -xxxxxxx... 1st on a</code></pre> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2139 | </div></div> |
| 2140 | </dd> |
| 2141 | <dt class="hdlist1"> |
| 2142 | --graph |
| 2143 | </dt> |
| 2144 | <dd> |
| 2145 | <p> |
| 2146 | Draw a text-based graphical representation of the commit history |
| 2147 | on the left hand side of the output. This may cause extra lines |
| 2148 | to be printed in between commits, in order for the graph history |
| 2149 | to be drawn properly. |
Junio C Hamano | ef57d1e | 2015-03-25 21:23:00 | [diff] [blame] | 2150 | Cannot be combined with <code>--no-walk</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2151 | </p> |
| 2152 | <div class="paragraph"><p>This enables parent rewriting, see <em>History Simplification</em> below.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2153 | <div class="paragraph"><p>This implies the <code>--topo-order</code> option by default, but the |
| 2154 | <code>--date-order</code> option may also be specified.</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2155 | </dd> |
Junio C Hamano | 624dd4c | 2014-04-03 21:56:30 | [diff] [blame] | 2156 | <dt class="hdlist1"> |
| 2157 | --show-linear-break[=<barrier>] |
| 2158 | </dt> |
| 2159 | <dd> |
| 2160 | <p> |
| 2161 | When --graph is not used, all history branches are flattened |
| 2162 | which can make it hard to see that the two consecutive commits |
| 2163 | do not belong to a linear branch. This option puts a barrier |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2164 | in between them in that case. If <code><barrier></code> is specified, it |
Junio C Hamano | 624dd4c | 2014-04-03 21:56:30 | [diff] [blame] | 2165 | is the string that will be shown instead of the default one. |
| 2166 | </p> |
| 2167 | </dd> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2168 | </dl></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 2169 | </div> |
| 2170 | <div class="sect2"> |
| 2171 | <h3 id="_diff_formatting">Diff Formatting</h3> |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 2172 | <div class="paragraph"><p>Listed below are options that control the formatting of diff output. |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 2173 | Some of them are specific to <a href="git-rev-list.html">git-rev-list(1)</a>, however other diff |
| 2174 | options may be given. See <a href="git-diff-files.html">git-diff-files(1)</a> for more options.</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2175 | <div class="dlist"><dl> |
| 2176 | <dt class="hdlist1"> |
| 2177 | -c |
| 2178 | </dt> |
| 2179 | <dd> |
| 2180 | <p> |
| 2181 | With this option, diff output for a merge commit |
| 2182 | shows the differences from each of the parents to the merge result |
| 2183 | simultaneously instead of showing pairwise diff between a parent |
| 2184 | and the result one at a time. Furthermore, it lists only files |
| 2185 | which were modified from all parents. |
| 2186 | </p> |
| 2187 | </dd> |
| 2188 | <dt class="hdlist1"> |
| 2189 | --cc |
| 2190 | </dt> |
| 2191 | <dd> |
| 2192 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2193 | This flag implies the <code>-c</code> option and further compresses the |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2194 | patch output by omitting uninteresting hunks whose contents in |
| 2195 | the parents have only two variants and the merge result picks |
| 2196 | one of them without modification. |
| 2197 | </p> |
| 2198 | </dd> |
| 2199 | <dt class="hdlist1"> |
| 2200 | -m |
| 2201 | </dt> |
| 2202 | <dd> |
| 2203 | <p> |
| 2204 | This flag makes the merge commits show the full diff like |
| 2205 | regular commits; for each merge parent, a separate log entry |
| 2206 | and diff is generated. An exception is that only diff against |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2207 | the first parent is shown when <code>--first-parent</code> option is given; |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2208 | in that case, the output represents the changes the merge |
| 2209 | brought <em>into</em> the then-current branch. |
| 2210 | </p> |
| 2211 | </dd> |
| 2212 | <dt class="hdlist1"> |
| 2213 | -r |
| 2214 | </dt> |
| 2215 | <dd> |
| 2216 | <p> |
| 2217 | Show recursive diffs. |
| 2218 | </p> |
| 2219 | </dd> |
| 2220 | <dt class="hdlist1"> |
| 2221 | -t |
| 2222 | </dt> |
| 2223 | <dd> |
| 2224 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2225 | Show the tree objects in the diff output. This implies <code>-r</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2226 | </p> |
| 2227 | </dd> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2228 | </dl></div> |
Junio C Hamano | 0430e3a | 2007-05-15 03:13:17 | [diff] [blame] | 2229 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 2230 | </div> |
| 2231 | </div> |
| 2232 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 2233 | <h2 id="_pretty_formats">PRETTY FORMATS</h2> |
Junio C Hamano | 0430e3a | 2007-05-15 03:13:17 | [diff] [blame] | 2234 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2235 | <div class="paragraph"><p>If the commit is a merge, and if the pretty-format |
Junio C Hamano | 0430e3a | 2007-05-15 03:13:17 | [diff] [blame] | 2236 | is not <em>oneline</em>, <em>email</em> or <em>raw</em>, an additional line is |
| 2237 | inserted before the <em>Author:</em> line. This line begins with |
| 2238 | "Merge: " and the sha1s of ancestral commits are printed, |
| 2239 | separated by spaces. Note that the listed commits may not |
| 2240 | necessarily be the list of the <strong>direct</strong> parent commits if you |
| 2241 | have limited your view of history: for example, if you are |
| 2242 | only interested in changes related to a certain directory or |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 2243 | file.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2244 | <div class="paragraph"><p>There are several built-in formats, and you can define |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 2245 | additional formats by setting a pretty.<name> |
| 2246 | config option to either another format name, or a |
| 2247 | <em>format:</em> string, as described below (see |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 2248 | <a href="git-config.html">git-config(1)</a>). Here are the details of the |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 2249 | built-in formats:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2250 | <div class="ulist"><ul> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2251 | <li> |
| 2252 | <p> |
| 2253 | <em>oneline</em> |
| 2254 | </p> |
| 2255 | <div class="literalblock"> |
| 2256 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2257 | <pre><code><sha1> <title line></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2258 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2259 | <div class="paragraph"><p>This is designed to be as compact as possible.</p></div> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2260 | </li> |
| 2261 | <li> |
| 2262 | <p> |
| 2263 | <em>short</em> |
| 2264 | </p> |
| 2265 | <div class="literalblock"> |
| 2266 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2267 | <pre><code>commit <sha1> |
| 2268 | Author: <author></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2269 | </div></div> |
| 2270 | <div class="literalblock"> |
| 2271 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2272 | <pre><code><title line></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2273 | </div></div> |
| 2274 | </li> |
| 2275 | <li> |
| 2276 | <p> |
| 2277 | <em>medium</em> |
| 2278 | </p> |
| 2279 | <div class="literalblock"> |
| 2280 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2281 | <pre><code>commit <sha1> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2282 | Author: <author> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2283 | Date: <author date></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2284 | </div></div> |
| 2285 | <div class="literalblock"> |
| 2286 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2287 | <pre><code><title line></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2288 | </div></div> |
| 2289 | <div class="literalblock"> |
| 2290 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2291 | <pre><code><full commit message></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2292 | </div></div> |
| 2293 | </li> |
| 2294 | <li> |
| 2295 | <p> |
| 2296 | <em>full</em> |
| 2297 | </p> |
| 2298 | <div class="literalblock"> |
| 2299 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2300 | <pre><code>commit <sha1> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2301 | Author: <author> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2302 | Commit: <committer></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2303 | </div></div> |
| 2304 | <div class="literalblock"> |
| 2305 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2306 | <pre><code><title line></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2307 | </div></div> |
| 2308 | <div class="literalblock"> |
| 2309 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2310 | <pre><code><full commit message></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2311 | </div></div> |
| 2312 | </li> |
| 2313 | <li> |
| 2314 | <p> |
| 2315 | <em>fuller</em> |
| 2316 | </p> |
| 2317 | <div class="literalblock"> |
| 2318 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2319 | <pre><code>commit <sha1> |
Junio C Hamano | 6a3c827 | 2008-12-19 21:38:18 | [diff] [blame] | 2320 | Author: <author> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 2321 | AuthorDate: <author date> |
Junio C Hamano | 6a3c827 | 2008-12-19 21:38:18 | [diff] [blame] | 2322 | Commit: <committer> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2323 | CommitDate: <committer date></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2324 | </div></div> |
| 2325 | <div class="literalblock"> |
| 2326 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2327 | <pre><code><title line></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2328 | </div></div> |
| 2329 | <div class="literalblock"> |
| 2330 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2331 | <pre><code><full commit message></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2332 | </div></div> |
| 2333 | </li> |
| 2334 | <li> |
| 2335 | <p> |
| 2336 | <em>email</em> |
| 2337 | </p> |
| 2338 | <div class="literalblock"> |
| 2339 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2340 | <pre><code>From <sha1> <date> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2341 | From: <author> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 2342 | Date: <author date> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2343 | Subject: [PATCH] <title line></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2344 | </div></div> |
| 2345 | <div class="literalblock"> |
| 2346 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2347 | <pre><code><full commit message></code></pre> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2348 | </div></div> |
| 2349 | </li> |
| 2350 | <li> |
| 2351 | <p> |
| 2352 | <em>raw</em> |
| 2353 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2354 | <div class="paragraph"><p>The <em>raw</em> format shows the entire commit exactly as |
Junio C Hamano | e3f080d | 2013-04-22 02:27:13 | [diff] [blame] | 2355 | stored in the commit object. Notably, the SHA-1s are |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2356 | displayed in full, regardless of whether --abbrev or |
| 2357 | --no-abbrev are used, and <em>parents</em> information show the |
Junio C Hamano | d75148a | 2014-04-08 19:48:38 | [diff] [blame] | 2358 | true parent commits, without taking grafts or history |
Junio C Hamano | 85f1fde | 2015-06-01 20:37:32 | [diff] [blame] | 2359 | simplification into account. Note that this format affects the way |
| 2360 | commits are displayed, but not the way the diff is shown e.g. with |
| 2361 | <code>git log --raw</code>. To get full object names in a raw diff format, |
| 2362 | use <code>--no-abbrev</code>.</p></div> |
Junio C Hamano | a340aaa | 2006-11-23 02:47:33 | [diff] [blame] | 2363 | </li> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2364 | <li> |
| 2365 | <p> |
Junio C Hamano | e32ec8b | 2010-06-02 23:32:31 | [diff] [blame] | 2366 | <em>format:<string></em> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2367 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2368 | <div class="paragraph"><p>The <em>format:<string></em> format allows you to specify which information |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2369 | you want to show. It works a little bit like printf format, |
| 2370 | with the notable exception that you get a newline with <em>%n</em> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 2371 | instead of <em>\n</em>.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2372 | <div class="paragraph"><p>E.g, <em>format:"The author of %h was %an, %ar%nThe title was >>%s<<%n"</em> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 2373 | would show something like this:</p></div> |
Junio C Hamano | 0430e3a | 2007-05-15 03:13:17 | [diff] [blame] | 2374 | <div class="listingblock"> |
| 2375 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2376 | <pre><code>The author of fe6e0ee was Junio C Hamano, 23 hours ago |
| 2377 | The title was >>t4119: test autocomputing -p<n> for traditional diff input.<<</code></pre> |
Junio C Hamano | 0430e3a | 2007-05-15 03:13:17 | [diff] [blame] | 2378 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2379 | <div class="paragraph"><p>The placeholders are:</p></div> |
| 2380 | <div class="ulist"><ul> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2381 | <li> |
| 2382 | <p> |
| 2383 | <em>%H</em>: commit hash |
| 2384 | </p> |
| 2385 | </li> |
| 2386 | <li> |
| 2387 | <p> |
| 2388 | <em>%h</em>: abbreviated commit hash |
| 2389 | </p> |
| 2390 | </li> |
| 2391 | <li> |
| 2392 | <p> |
| 2393 | <em>%T</em>: tree hash |
| 2394 | </p> |
| 2395 | </li> |
| 2396 | <li> |
| 2397 | <p> |
| 2398 | <em>%t</em>: abbreviated tree hash |
| 2399 | </p> |
| 2400 | </li> |
| 2401 | <li> |
| 2402 | <p> |
| 2403 | <em>%P</em>: parent hashes |
| 2404 | </p> |
| 2405 | </li> |
| 2406 | <li> |
| 2407 | <p> |
| 2408 | <em>%p</em>: abbreviated parent hashes |
| 2409 | </p> |
| 2410 | </li> |
| 2411 | <li> |
| 2412 | <p> |
| 2413 | <em>%an</em>: author name |
| 2414 | </p> |
| 2415 | </li> |
| 2416 | <li> |
| 2417 | <p> |
Junio C Hamano | 04e768d | 2013-04-23 19:19:26 | [diff] [blame] | 2418 | <em>%aN</em>: author name (respecting .mailmap, see <a href="git-shortlog.html">git-shortlog(1)</a> |
| 2419 | or <a href="git-blame.html">git-blame(1)</a>) |
Junio C Hamano | f5a9362 | 2008-07-16 03:23:57 | [diff] [blame] | 2420 | </p> |
| 2421 | </li> |
| 2422 | <li> |
| 2423 | <p> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2424 | <em>%ae</em>: author email |
| 2425 | </p> |
| 2426 | </li> |
| 2427 | <li> |
| 2428 | <p> |
Junio C Hamano | 04e768d | 2013-04-23 19:19:26 | [diff] [blame] | 2429 | <em>%aE</em>: author email (respecting .mailmap, see |
| 2430 | <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>) |
Junio C Hamano | 8bc410e | 2009-02-15 10:38:19 | [diff] [blame] | 2431 | </p> |
| 2432 | </li> |
| 2433 | <li> |
| 2434 | <p> |
Junio C Hamano | a387df3 | 2008-08-29 08:56:58 | [diff] [blame] | 2435 | <em>%ad</em>: author date (format respects --date= option) |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2436 | </p> |
| 2437 | </li> |
| 2438 | <li> |
| 2439 | <p> |
| 2440 | <em>%aD</em>: author date, RFC2822 style |
| 2441 | </p> |
| 2442 | </li> |
| 2443 | <li> |
| 2444 | <p> |
| 2445 | <em>%ar</em>: author date, relative |
| 2446 | </p> |
| 2447 | </li> |
| 2448 | <li> |
| 2449 | <p> |
| 2450 | <em>%at</em>: author date, UNIX timestamp |
| 2451 | </p> |
| 2452 | </li> |
| 2453 | <li> |
| 2454 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2455 | <em>%ai</em>: author date, ISO 8601-like format |
| 2456 | </p> |
| 2457 | </li> |
| 2458 | <li> |
| 2459 | <p> |
| 2460 | <em>%aI</em>: author date, strict ISO 8601 format |
Junio C Hamano | 02f130b | 2007-07-14 08:26:56 | [diff] [blame] | 2461 | </p> |
| 2462 | </li> |
| 2463 | <li> |
| 2464 | <p> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2465 | <em>%cn</em>: committer name |
| 2466 | </p> |
| 2467 | </li> |
| 2468 | <li> |
| 2469 | <p> |
Junio C Hamano | 04e768d | 2013-04-23 19:19:26 | [diff] [blame] | 2470 | <em>%cN</em>: committer name (respecting .mailmap, see |
| 2471 | <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>) |
Junio C Hamano | f5a9362 | 2008-07-16 03:23:57 | [diff] [blame] | 2472 | </p> |
| 2473 | </li> |
| 2474 | <li> |
| 2475 | <p> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2476 | <em>%ce</em>: committer email |
| 2477 | </p> |
| 2478 | </li> |
| 2479 | <li> |
| 2480 | <p> |
Junio C Hamano | 04e768d | 2013-04-23 19:19:26 | [diff] [blame] | 2481 | <em>%cE</em>: committer email (respecting .mailmap, see |
| 2482 | <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>) |
Junio C Hamano | 8bc410e | 2009-02-15 10:38:19 | [diff] [blame] | 2483 | </p> |
| 2484 | </li> |
| 2485 | <li> |
| 2486 | <p> |
Junio C Hamano | 53fe031 | 2014-09-09 21:16:17 | [diff] [blame] | 2487 | <em>%cd</em>: committer date (format respects --date= option) |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2488 | </p> |
| 2489 | </li> |
| 2490 | <li> |
| 2491 | <p> |
| 2492 | <em>%cD</em>: committer date, RFC2822 style |
| 2493 | </p> |
| 2494 | </li> |
| 2495 | <li> |
| 2496 | <p> |
| 2497 | <em>%cr</em>: committer date, relative |
| 2498 | </p> |
| 2499 | </li> |
| 2500 | <li> |
| 2501 | <p> |
| 2502 | <em>%ct</em>: committer date, UNIX timestamp |
| 2503 | </p> |
| 2504 | </li> |
| 2505 | <li> |
| 2506 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2507 | <em>%ci</em>: committer date, ISO 8601-like format |
| 2508 | </p> |
| 2509 | </li> |
| 2510 | <li> |
| 2511 | <p> |
| 2512 | <em>%cI</em>: committer date, strict ISO 8601 format |
Junio C Hamano | 02f130b | 2007-07-14 08:26:56 | [diff] [blame] | 2513 | </p> |
| 2514 | </li> |
| 2515 | <li> |
| 2516 | <p> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 2517 | <em>%d</em>: ref names, like the --decorate option of <a href="git-log.html">git-log(1)</a> |
Junio C Hamano | 5e4d8de | 2008-09-19 06:27:02 | [diff] [blame] | 2518 | </p> |
| 2519 | </li> |
| 2520 | <li> |
| 2521 | <p> |
Junio C Hamano | 00b9f1a | 2014-09-29 23:11:28 | [diff] [blame] | 2522 | <em>%D</em>: ref names without the " (", ")" wrapping. |
| 2523 | </p> |
| 2524 | </li> |
| 2525 | <li> |
| 2526 | <p> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2527 | <em>%e</em>: encoding |
| 2528 | </p> |
| 2529 | </li> |
| 2530 | <li> |
| 2531 | <p> |
| 2532 | <em>%s</em>: subject |
| 2533 | </p> |
| 2534 | </li> |
| 2535 | <li> |
| 2536 | <p> |
Junio C Hamano | 5f9a6f0 | 2009-04-06 08:26:56 | [diff] [blame] | 2537 | <em>%f</em>: sanitized subject line, suitable for a filename |
| 2538 | </p> |
| 2539 | </li> |
| 2540 | <li> |
| 2541 | <p> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2542 | <em>%b</em>: body |
| 2543 | </p> |
| 2544 | </li> |
| 2545 | <li> |
| 2546 | <p> |
Junio C Hamano | cb39aea | 2010-05-09 07:24:48 | [diff] [blame] | 2547 | <em>%B</em>: raw body (unwrapped subject and body) |
| 2548 | </p> |
| 2549 | </li> |
| 2550 | <li> |
| 2551 | <p> |
Junio C Hamano | 3b70d3c | 2009-11-21 17:37:37 | [diff] [blame] | 2552 | <em>%N</em>: commit notes |
| 2553 | </p> |
| 2554 | </li> |
| 2555 | <li> |
| 2556 | <p> |
Junio C Hamano | 0acb1ae | 2012-09-24 21:28:13 | [diff] [blame] | 2557 | <em>%GG</em>: raw verification message from GPG for a signed commit |
| 2558 | </p> |
| 2559 | </li> |
| 2560 | <li> |
| 2561 | <p> |
Junio C Hamano | 4a401d5 | 2016-10-26 22:24:37 | [diff] [blame] | 2562 | <em>%G?</em>: show "G" for a good (valid) signature, |
| 2563 | "B" for a bad signature, |
| 2564 | "U" for a good signature with unknown validity, |
| 2565 | "X" for a good signature that has expired, |
| 2566 | "Y" for a good signature made by an expired key, |
| 2567 | "R" for a good signature made by a revoked key, |
| 2568 | "E" if the signature cannot be checked (e.g. missing key) |
| 2569 | and "N" for no signature |
Junio C Hamano | 0acb1ae | 2012-09-24 21:28:13 | [diff] [blame] | 2570 | </p> |
| 2571 | </li> |
| 2572 | <li> |
| 2573 | <p> |
| 2574 | <em>%GS</em>: show the name of the signer for a signed commit |
| 2575 | </p> |
| 2576 | </li> |
| 2577 | <li> |
| 2578 | <p> |
Junio C Hamano | 5e7f131 | 2013-03-21 22:49:01 | [diff] [blame] | 2579 | <em>%GK</em>: show the key used to sign a signed commit |
| 2580 | </p> |
| 2581 | </li> |
| 2582 | <li> |
| 2583 | <p> |
Junio C Hamano | e548d1b | 2016-08-08 22:26:49 | [diff] [blame] | 2584 | <em>%gD</em>: reflog selector, e.g., <code>refs/stash@{1}</code> or |
| 2585 | <code>refs/stash@{2 minutes ago</code>}; the format follows the rules described |
| 2586 | for the <code>-g</code> option. The portion before the <code>@</code> is the refname as |
| 2587 | given on the command line (so <code>git log -g refs/heads/master</code> would |
| 2588 | yield <code>refs/heads/master@{0}</code>). |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 2589 | </p> |
| 2590 | </li> |
| 2591 | <li> |
| 2592 | <p> |
Junio C Hamano | e548d1b | 2016-08-08 22:26:49 | [diff] [blame] | 2593 | <em>%gd</em>: shortened reflog selector; same as <code>%gD</code>, but the refname |
| 2594 | portion is shortened for human readability (so <code>refs/heads/master</code> |
| 2595 | becomes just <code>master</code>). |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 2596 | </p> |
| 2597 | </li> |
| 2598 | <li> |
| 2599 | <p> |
Junio C Hamano | 962f3a3 | 2011-12-22 20:21:44 | [diff] [blame] | 2600 | <em>%gn</em>: reflog identity name |
| 2601 | </p> |
| 2602 | </li> |
| 2603 | <li> |
| 2604 | <p> |
Junio C Hamano | 04e768d | 2013-04-23 19:19:26 | [diff] [blame] | 2605 | <em>%gN</em>: reflog identity name (respecting .mailmap, see |
| 2606 | <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>) |
Junio C Hamano | 962f3a3 | 2011-12-22 20:21:44 | [diff] [blame] | 2607 | </p> |
| 2608 | </li> |
| 2609 | <li> |
| 2610 | <p> |
| 2611 | <em>%ge</em>: reflog identity email |
| 2612 | </p> |
| 2613 | </li> |
| 2614 | <li> |
| 2615 | <p> |
Junio C Hamano | 04e768d | 2013-04-23 19:19:26 | [diff] [blame] | 2616 | <em>%gE</em>: reflog identity email (respecting .mailmap, see |
| 2617 | <a href="git-shortlog.html">git-shortlog(1)</a> or <a href="git-blame.html">git-blame(1)</a>) |
Junio C Hamano | 962f3a3 | 2011-12-22 20:21:44 | [diff] [blame] | 2618 | </p> |
| 2619 | </li> |
| 2620 | <li> |
| 2621 | <p> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 2622 | <em>%gs</em>: reflog subject |
| 2623 | </p> |
| 2624 | </li> |
| 2625 | <li> |
| 2626 | <p> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2627 | <em>%Cred</em>: switch color to red |
| 2628 | </p> |
| 2629 | </li> |
| 2630 | <li> |
| 2631 | <p> |
| 2632 | <em>%Cgreen</em>: switch color to green |
| 2633 | </p> |
| 2634 | </li> |
| 2635 | <li> |
| 2636 | <p> |
| 2637 | <em>%Cblue</em>: switch color to blue |
| 2638 | </p> |
| 2639 | </li> |
| 2640 | <li> |
| 2641 | <p> |
| 2642 | <em>%Creset</em>: reset color |
| 2643 | </p> |
| 2644 | </li> |
| 2645 | <li> |
| 2646 | <p> |
Junio C Hamano | c0859f7 | 2016-10-17 22:22:57 | [diff] [blame] | 2647 | <em>%C(…)</em>: color specification, as described under Values in the |
| 2648 | "CONFIGURATION FILE" section of <a href="git-config.html">git-config(1)</a>; |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2649 | adding <code>auto,</code> at the beginning will emit color only when colors are |
| 2650 | enabled for log output (by <code>color.diff</code>, <code>color.ui</code>, or <code>--color</code>, and |
| 2651 | respecting the <code>auto</code> settings of the former if we are going to a |
| 2652 | terminal). <code>auto</code> alone (i.e. <code>%C(auto)</code>) will turn on auto coloring |
Junio C Hamano | 04e768d | 2013-04-23 19:19:26 | [diff] [blame] | 2653 | on the next placeholders until the color is switched again. |
Junio C Hamano | cc0cb31 | 2009-01-22 03:38:50 | [diff] [blame] | 2654 | </p> |
| 2655 | </li> |
| 2656 | <li> |
| 2657 | <p> |
Junio C Hamano | cd45166 | 2016-09-13 00:54:09 | [diff] [blame] | 2658 | <em>%m</em>: left (<code><</code>), right (<code>></code>) or boundary (<code>-</code>) mark |
Junio C Hamano | d9e0e5d | 2007-04-14 16:22:04 | [diff] [blame] | 2659 | </p> |
| 2660 | </li> |
| 2661 | <li> |
| 2662 | <p> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2663 | <em>%n</em>: newline |
| 2664 | </p> |
Junio C Hamano | 0430e3a | 2007-05-15 03:13:17 | [diff] [blame] | 2665 | </li> |
Junio C Hamano | b78d259 | 2008-04-09 09:39:08 | [diff] [blame] | 2666 | <li> |
| 2667 | <p> |
Junio C Hamano | a9701f0 | 2010-01-21 00:42:16 | [diff] [blame] | 2668 | <em>%%</em>: a raw <em>%</em> |
| 2669 | </p> |
| 2670 | </li> |
| 2671 | <li> |
| 2672 | <p> |
Junio C Hamano | b78d259 | 2008-04-09 09:39:08 | [diff] [blame] | 2673 | <em>%x00</em>: print a byte from a hex code |
| 2674 | </p> |
| 2675 | </li> |
Junio C Hamano | bf984de | 2009-11-23 06:11:19 | [diff] [blame] | 2676 | <li> |
| 2677 | <p> |
| 2678 | <em>%w([<w>[,<i1>[,<i2>]]])</em>: switch line wrapping, like the -w option of |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 2679 | <a href="git-shortlog.html">git-shortlog(1)</a>. |
Junio C Hamano | bf984de | 2009-11-23 06:11:19 | [diff] [blame] | 2680 | </p> |
| 2681 | </li> |
Junio C Hamano | 04e768d | 2013-04-23 19:19:26 | [diff] [blame] | 2682 | <li> |
| 2683 | <p> |
| 2684 | <em>%<(<N>[,trunc|ltrunc|mtrunc])</em>: make the next placeholder take at |
| 2685 | least N columns, padding spaces on the right if necessary. |
| 2686 | Optionally truncate at the beginning (ltrunc), the middle (mtrunc) |
| 2687 | or the end (trunc) if the output is longer than N columns. |
| 2688 | Note that truncating only works correctly with N >= 2. |
| 2689 | </p> |
| 2690 | </li> |
| 2691 | <li> |
| 2692 | <p> |
| 2693 | <em>%<|(<N>)</em>: make the next placeholder take at least until Nth |
| 2694 | columns, padding spaces on the right if necessary |
| 2695 | </p> |
| 2696 | </li> |
| 2697 | <li> |
| 2698 | <p> |
| 2699 | <em>%>(<N>)</em>, <em>%>|(<N>)</em>: similar to <em>%<(<N>)</em>, <em>%<|(<N>)</em> |
| 2700 | respectively, but padding spaces on the left |
| 2701 | </p> |
| 2702 | </li> |
| 2703 | <li> |
| 2704 | <p> |
| 2705 | <em>%>>(<N>)</em>, <em>%>>|(<N>)</em>: similar to <em>%>(<N>)</em>, <em>%>|(<N>)</em> |
| 2706 | respectively, except that if the next placeholder takes more spaces |
| 2707 | than given and there are spaces on its left, use those spaces |
| 2708 | </p> |
| 2709 | </li> |
| 2710 | <li> |
| 2711 | <p> |
| 2712 | <em>%><(<N>)</em>, <em>%><|(<N>)</em>: similar to <em>% <(<N>)</em>, <em>%<|(<N>)</em> |
| 2713 | respectively, but padding both sides (i.e. the text is centered) |
Junio C Hamano | 222ed82 | 2017-06-02 06:24:06 | [diff] [blame] | 2714 | </p> |
| 2715 | </li> |
| 2716 | <li> |
| 2717 | <p> |
| 2718 | %(trailers): display the trailers of the body as interpreted by |
Junio C Hamano | 52b1cfb | 2016-12-20 00:18:36 | [diff] [blame] | 2719 | <a href="git-interpret-trailers.html">git-interpret-trailers(1)</a> |
Junio C Hamano | 04e768d | 2013-04-23 19:19:26 | [diff] [blame] | 2720 | </p> |
| 2721 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 2722 | </ul></div> |
Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 2723 | </li> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 2724 | </ul></div> |
| 2725 | <div class="admonitionblock"> |
| 2726 | <table><tr> |
| 2727 | <td class="icon"> |
| 2728 | <div class="title">Note</div> |
| 2729 | </td> |
| 2730 | <td class="content">Some placeholders may depend on other options given to the |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2731 | revision traversal engine. For example, the <code>%g*</code> reflog options will |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 2732 | insert an empty string unless we are traversing reflog entries (e.g., by |
Junio C Hamano | 00b9f1a | 2014-09-29 23:11:28 | [diff] [blame] | 2733 | <code>git log -g</code>). The <code>%d</code> and <code>%D</code> placeholders will use the "short" |
| 2734 | decoration format if <code>--decorate</code> was not already provided on the command |
| 2735 | line.</td> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 2736 | </tr></table> |
| 2737 | </div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2738 | <div class="paragraph"><p>If you add a <code>+</code> (plus sign) after <em>%</em> of a placeholder, a line-feed |
Junio C Hamano | 2bd8a74 | 2009-12-01 21:16:59 | [diff] [blame] | 2739 | is inserted immediately before the expansion if and only if the |
| 2740 | placeholder expands to a non-empty string.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2741 | <div class="paragraph"><p>If you add a <code>-</code> (minus sign) after <em>%</em> of a placeholder, line-feeds that |
Junio C Hamano | 2bd8a74 | 2009-12-01 21:16:59 | [diff] [blame] | 2742 | immediately precede the expansion are deleted if and only if the |
| 2743 | placeholder expands to an empty string.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2744 | <div class="paragraph"><p>If you add a ` ` (space) after <em>%</em> of a placeholder, a space |
Junio C Hamano | 89a5734 | 2010-06-22 23:22:55 | [diff] [blame] | 2745 | is inserted immediately before the expansion if and only if the |
| 2746 | placeholder expands to a non-empty string.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2747 | <div class="ulist"><ul> |
Junio C Hamano | 6fb124c | 2008-06-13 10:04:01 | [diff] [blame] | 2748 | <li> |
| 2749 | <p> |
| 2750 | <em>tformat:</em> |
| 2751 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 2752 | <div class="paragraph"><p>The <em>tformat:</em> format works exactly like <em>format:</em>, except that it |
Junio C Hamano | 6fb124c | 2008-06-13 10:04:01 | [diff] [blame] | 2753 | provides "terminator" semantics instead of "separator" semantics. In |
| 2754 | other words, each commit has the message terminator character (usually a |
| 2755 | newline) appended, rather than a separator placed between entries. |
| 2756 | This means that the final entry of a single-line format will be properly |
| 2757 | terminated with a new line, just as the "oneline" format does. |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 2758 | For example:</p></div> |
Junio C Hamano | 6fb124c | 2008-06-13 10:04:01 | [diff] [blame] | 2759 | <div class="listingblock"> |
| 2760 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2761 | <pre><code>$ git log -2 --pretty=format:%h 4da45bef \ |
Junio C Hamano | 6fb124c | 2008-06-13 10:04:01 | [diff] [blame] | 2762 | | perl -pe '$_ .= " -- NO NEWLINE\n" unless /\n/' |
| 2763 | 4da45be |
| 2764 | 7134973 -- NO NEWLINE |
| 2765 | |
| 2766 | $ git log -2 --pretty=tformat:%h 4da45bef \ |
| 2767 | | perl -pe '$_ .= " -- NO NEWLINE\n" unless /\n/' |
| 2768 | 4da45be |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2769 | 7134973</code></pre> |
Junio C Hamano | 6fb124c | 2008-06-13 10:04:01 | [diff] [blame] | 2770 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2771 | <div class="paragraph"><p>In addition, any unrecognized string that has a <code>%</code> in it is interpreted |
| 2772 | as if it has <code>tformat:</code> in front of it. For example, these two are |
Junio C Hamano | 0a23522 | 2009-03-06 08:21:09 | [diff] [blame] | 2773 | equivalent:</p></div> |
| 2774 | <div class="listingblock"> |
| 2775 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2776 | <pre><code>$ git log -2 --pretty=tformat:%h 4da45bef |
| 2777 | $ git log -2 --pretty=%h 4da45bef</code></pre> |
Junio C Hamano | 0a23522 | 2009-03-06 08:21:09 | [diff] [blame] | 2778 | </div></div> |
Junio C Hamano | 6fb124c | 2008-06-13 10:04:01 | [diff] [blame] | 2779 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 2780 | </ul></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 2781 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 2782 | </div> |
| 2783 | <div class="sect1"> |
Junio C Hamano | 58f587a | 2013-07-22 19:20:59 | [diff] [blame] | 2784 | <h2 id="_common_diff_options">COMMON DIFF OPTIONS</h2> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2785 | <div class="sectionbody"> |
| 2786 | <div class="dlist"><dl> |
| 2787 | <dt class="hdlist1"> |
| 2788 | -p |
| 2789 | </dt> |
| 2790 | <dt class="hdlist1"> |
| 2791 | -u |
| 2792 | </dt> |
| 2793 | <dt class="hdlist1"> |
| 2794 | --patch |
| 2795 | </dt> |
| 2796 | <dd> |
| 2797 | <p> |
| 2798 | Generate patch (see section on generating patches). |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2799 | </p> |
| 2800 | </dd> |
| 2801 | <dt class="hdlist1"> |
Junio C Hamano | 58f587a | 2013-07-22 19:20:59 | [diff] [blame] | 2802 | -s |
| 2803 | </dt> |
| 2804 | <dt class="hdlist1"> |
| 2805 | --no-patch |
| 2806 | </dt> |
| 2807 | <dd> |
| 2808 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2809 | Suppress diff output. Useful for commands like <code>git show</code> that |
| 2810 | show the patch by default, or to cancel the effect of <code>--patch</code>. |
Junio C Hamano | 58f587a | 2013-07-22 19:20:59 | [diff] [blame] | 2811 | </p> |
| 2812 | </dd> |
| 2813 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2814 | -U<n> |
| 2815 | </dt> |
| 2816 | <dt class="hdlist1"> |
| 2817 | --unified=<n> |
| 2818 | </dt> |
| 2819 | <dd> |
| 2820 | <p> |
| 2821 | Generate diffs with <n> lines of context instead of |
| 2822 | the usual three. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2823 | Implies <code>-p</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2824 | </p> |
| 2825 | </dd> |
| 2826 | <dt class="hdlist1"> |
| 2827 | --raw |
| 2828 | </dt> |
| 2829 | <dd> |
| 2830 | <p> |
Junio C Hamano | 85f1fde | 2015-06-01 20:37:32 | [diff] [blame] | 2831 | For each commit, show a summary of changes using the raw diff |
| 2832 | format. See the "RAW OUTPUT FORMAT" section of |
| 2833 | <a href="git-diff.html">git-diff(1)</a>. This is different from showing the log |
| 2834 | itself in raw format, which you can achieve with |
| 2835 | <code>--format=raw</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2836 | </p> |
| 2837 | </dd> |
| 2838 | <dt class="hdlist1"> |
| 2839 | --patch-with-raw |
| 2840 | </dt> |
| 2841 | <dd> |
| 2842 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2843 | Synonym for <code>-p --raw</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2844 | </p> |
| 2845 | </dd> |
| 2846 | <dt class="hdlist1"> |
Junio C Hamano | ad70bf0 | 2016-09-26 23:44:27 | [diff] [blame] | 2847 | --indent-heuristic |
| 2848 | </dt> |
| 2849 | <dt class="hdlist1"> |
| 2850 | --no-indent-heuristic |
| 2851 | </dt> |
Junio C Hamano | 5f88833 | 2016-06-13 19:28:31 | [diff] [blame] | 2852 | <dd> |
| 2853 | <p> |
Junio C Hamano | ad70bf0 | 2016-09-26 23:44:27 | [diff] [blame] | 2854 | These are to help debugging and tuning experimental heuristics |
| 2855 | (which are off by default) that shift diff hunk boundaries to |
| 2856 | make patches easier to read. |
Junio C Hamano | 5f88833 | 2016-06-13 19:28:31 | [diff] [blame] | 2857 | </p> |
| 2858 | </dd> |
| 2859 | <dt class="hdlist1"> |
Junio C Hamano | 5a73f30 | 2011-10-14 05:58:34 | [diff] [blame] | 2860 | --minimal |
| 2861 | </dt> |
| 2862 | <dd> |
| 2863 | <p> |
| 2864 | Spend extra time to make sure the smallest possible |
| 2865 | diff is produced. |
| 2866 | </p> |
| 2867 | </dd> |
| 2868 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2869 | --patience |
| 2870 | </dt> |
| 2871 | <dd> |
| 2872 | <p> |
| 2873 | Generate a diff using the "patience diff" algorithm. |
| 2874 | </p> |
| 2875 | </dd> |
| 2876 | <dt class="hdlist1"> |
Junio C Hamano | aea9e6b | 2012-03-07 00:17:11 | [diff] [blame] | 2877 | --histogram |
| 2878 | </dt> |
| 2879 | <dd> |
| 2880 | <p> |
| 2881 | Generate a diff using the "histogram diff" algorithm. |
| 2882 | </p> |
| 2883 | </dd> |
| 2884 | <dt class="hdlist1"> |
Junio C Hamano | 80ad00d | 2013-02-18 00:19:03 | [diff] [blame] | 2885 | --diff-algorithm={patience|minimal|histogram|myers} |
| 2886 | </dt> |
| 2887 | <dd> |
| 2888 | <p> |
| 2889 | Choose a diff algorithm. The variants are as follows: |
| 2890 | </p> |
| 2891 | <div class="openblock"> |
| 2892 | <div class="content"> |
| 2893 | <div class="dlist"><dl> |
| 2894 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2895 | <code>default</code>, <code>myers</code> |
Junio C Hamano | 80ad00d | 2013-02-18 00:19:03 | [diff] [blame] | 2896 | </dt> |
| 2897 | <dd> |
| 2898 | <p> |
| 2899 | The basic greedy diff algorithm. Currently, this is the default. |
| 2900 | </p> |
| 2901 | </dd> |
| 2902 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2903 | <code>minimal</code> |
Junio C Hamano | 80ad00d | 2013-02-18 00:19:03 | [diff] [blame] | 2904 | </dt> |
| 2905 | <dd> |
| 2906 | <p> |
| 2907 | Spend extra time to make sure the smallest possible diff is |
| 2908 | produced. |
| 2909 | </p> |
| 2910 | </dd> |
| 2911 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2912 | <code>patience</code> |
Junio C Hamano | 80ad00d | 2013-02-18 00:19:03 | [diff] [blame] | 2913 | </dt> |
| 2914 | <dd> |
| 2915 | <p> |
| 2916 | Use "patience diff" algorithm when generating patches. |
| 2917 | </p> |
| 2918 | </dd> |
| 2919 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2920 | <code>histogram</code> |
Junio C Hamano | 80ad00d | 2013-02-18 00:19:03 | [diff] [blame] | 2921 | </dt> |
| 2922 | <dd> |
| 2923 | <p> |
| 2924 | This algorithm extends the patience algorithm to "support |
| 2925 | low-occurrence common elements". |
| 2926 | </p> |
| 2927 | </dd> |
| 2928 | </dl></div> |
| 2929 | </div></div> |
| 2930 | <div class="paragraph"><p>For instance, if you configured diff.algorithm variable to a |
| 2931 | non-default value and want to use the default one, then you |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2932 | have to use <code>--diff-algorithm=default</code> option.</p></div> |
Junio C Hamano | 80ad00d | 2013-02-18 00:19:03 | [diff] [blame] | 2933 | </dd> |
| 2934 | <dt class="hdlist1"> |
Junio C Hamano | 4c4b012 | 2011-06-30 01:19:32 | [diff] [blame] | 2935 | --stat[=<width>[,<name-width>[,<count>]]] |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2936 | </dt> |
| 2937 | <dd> |
| 2938 | <p> |
Junio C Hamano | aea9e6b | 2012-03-07 00:17:11 | [diff] [blame] | 2939 | Generate a diffstat. By default, as much space as necessary |
| 2940 | will be used for the filename part, and the rest for the graph |
| 2941 | part. Maximum width defaults to terminal width, or 80 columns |
Junio C Hamano | 7f2b3cb | 2012-06-22 22:42:39 | [diff] [blame] | 2942 | if not connected to a terminal, and can be overridden by |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2943 | <code><width></code>. The width of the filename part can be limited by |
| 2944 | giving another width <code><name-width></code> after a comma. The width |
Junio C Hamano | aea9e6b | 2012-03-07 00:17:11 | [diff] [blame] | 2945 | of the graph part can be limited by using |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2946 | <code>--stat-graph-width=<width></code> (affects all commands generating |
| 2947 | a stat graph) or by setting <code>diff.statGraphWidth=<width></code> |
| 2948 | (does not affect <code>git format-patch</code>). |
| 2949 | By giving a third parameter <code><count></code>, you can limit the |
| 2950 | output to the first <code><count></code> lines, followed by <code>...</code> if |
Junio C Hamano | aea9e6b | 2012-03-07 00:17:11 | [diff] [blame] | 2951 | there are more. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2952 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2953 | <div class="paragraph"><p>These parameters can also be set individually with <code>--stat-width=<width></code>, |
| 2954 | <code>--stat-name-width=<name-width></code> and <code>--stat-count=<count></code>.</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2955 | </dd> |
| 2956 | <dt class="hdlist1"> |
| 2957 | --numstat |
| 2958 | </dt> |
| 2959 | <dd> |
| 2960 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2961 | Similar to <code>--stat</code>, but shows number of added and |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2962 | deleted lines in decimal notation and pathname without |
| 2963 | abbreviation, to make it more machine friendly. For |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2964 | binary files, outputs two <code>-</code> instead of saying |
| 2965 | <code>0 0</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2966 | </p> |
| 2967 | </dd> |
| 2968 | <dt class="hdlist1"> |
| 2969 | --shortstat |
| 2970 | </dt> |
| 2971 | <dd> |
| 2972 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2973 | Output only the last line of the <code>--stat</code> format containing total |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2974 | number of modified files, as well as number of added and deleted |
| 2975 | lines. |
| 2976 | </p> |
| 2977 | </dd> |
| 2978 | <dt class="hdlist1"> |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 2979 | --dirstat[=<param1,param2,…>] |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2980 | </dt> |
| 2981 | <dd> |
| 2982 | <p> |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 2983 | Output the distribution of relative amount of changes for each |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2984 | sub-directory. The behavior of <code>--dirstat</code> can be customized by |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 2985 | passing it a comma separated list of parameters. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2986 | The defaults are controlled by the <code>diff.dirstat</code> configuration |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 2987 | variable (see <a href="git-config.html">git-config(1)</a>). |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 2988 | The following parameters are available: |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 2989 | </p> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 2990 | <div class="openblock"> |
| 2991 | <div class="content"> |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 2992 | <div class="dlist"><dl> |
| 2993 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 2994 | <code>changes</code> |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 2995 | </dt> |
| 2996 | <dd> |
| 2997 | <p> |
| 2998 | Compute the dirstat numbers by counting the lines that have been |
| 2999 | removed from the source, or added to the destination. This ignores |
| 3000 | the amount of pure code movements within a file. In other words, |
| 3001 | rearranging lines in a file is not counted as much as other changes. |
| 3002 | This is the default behavior when no parameter is given. |
| 3003 | </p> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3004 | </dd> |
| 3005 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3006 | <code>lines</code> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3007 | </dt> |
| 3008 | <dd> |
| 3009 | <p> |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 3010 | Compute the dirstat numbers by doing the regular line-based diff |
| 3011 | analysis, and summing the removed/added line counts. (For binary |
| 3012 | files, count 64-byte chunks instead, since binary files have no |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3013 | natural concept of lines). This is a more expensive <code>--dirstat</code> |
| 3014 | behavior than the <code>changes</code> behavior, but it does count rearranged |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 3015 | lines within a file as much as other changes. The resulting output |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3016 | is consistent with what you get from the other <code>--*stat</code> options. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3017 | </p> |
| 3018 | </dd> |
| 3019 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3020 | <code>files</code> |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 3021 | </dt> |
| 3022 | <dd> |
| 3023 | <p> |
| 3024 | Compute the dirstat numbers by counting the number of files changed. |
| 3025 | Each changed file counts equally in the dirstat analysis. This is |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3026 | the computationally cheapest <code>--dirstat</code> behavior, since it does |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 3027 | not have to look at the file contents at all. |
| 3028 | </p> |
| 3029 | </dd> |
| 3030 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3031 | <code>cumulative</code> |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 3032 | </dt> |
| 3033 | <dd> |
| 3034 | <p> |
| 3035 | Count changes in a child directory for the parent directory as well. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3036 | Note that when using <code>cumulative</code>, the sum of the percentages |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 3037 | reported may exceed 100%. The default (non-cumulative) behavior can |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3038 | be specified with the <code>noncumulative</code> parameter. |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 3039 | </p> |
| 3040 | </dd> |
| 3041 | <dt class="hdlist1"> |
| 3042 | <limit> |
| 3043 | </dt> |
| 3044 | <dd> |
| 3045 | <p> |
| 3046 | An integer parameter specifies a cut-off percent (3% by default). |
| 3047 | Directories contributing less than this percentage of the changes |
| 3048 | are not shown in the output. |
| 3049 | </p> |
| 3050 | </dd> |
| 3051 | </dl></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 3052 | </div></div> |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 3053 | <div class="paragraph"><p>Example: The following will count changed files, while ignoring |
| 3054 | directories with less than 10% of the total amount of changed files, |
| 3055 | and accumulating child directory counts in the parent directories: |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3056 | <code>--dirstat=files,10,cumulative</code>.</p></div> |
Junio C Hamano | 1c222c5 | 2011-05-13 19:55:32 | [diff] [blame] | 3057 | </dd> |
| 3058 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3059 | --summary |
| 3060 | </dt> |
| 3061 | <dd> |
| 3062 | <p> |
| 3063 | Output a condensed summary of extended header information |
| 3064 | such as creations, renames and mode changes. |
| 3065 | </p> |
| 3066 | </dd> |
| 3067 | <dt class="hdlist1"> |
| 3068 | --patch-with-stat |
| 3069 | </dt> |
| 3070 | <dd> |
| 3071 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3072 | Synonym for <code>-p --stat</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3073 | </p> |
| 3074 | </dd> |
| 3075 | <dt class="hdlist1"> |
| 3076 | -z |
| 3077 | </dt> |
| 3078 | <dd> |
| 3079 | <p> |
| 3080 | Separate the commits with NULs instead of with new newlines. |
| 3081 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3082 | <div class="paragraph"><p>Also, when <code>--raw</code> or <code>--numstat</code> has been given, do not munge |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3083 | pathnames and use NULs as output field terminators.</p></div> |
Junio C Hamano | 0f6f3bf | 2017-03-13 07:01:53 | [diff] [blame] | 3084 | <div class="paragraph"><p>Without this option, pathnames with "unusual" characters are quoted as |
| 3085 | explained for the configuration variable <code>core.quotePath</code> (see |
| 3086 | <a href="git-config.html">git-config(1)</a>).</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3087 | </dd> |
| 3088 | <dt class="hdlist1"> |
| 3089 | --name-only |
| 3090 | </dt> |
| 3091 | <dd> |
| 3092 | <p> |
| 3093 | Show only names of changed files. |
| 3094 | </p> |
| 3095 | </dd> |
| 3096 | <dt class="hdlist1"> |
| 3097 | --name-status |
| 3098 | </dt> |
| 3099 | <dd> |
| 3100 | <p> |
| 3101 | Show only names and status of changed files. See the description |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3102 | of the <code>--diff-filter</code> option on what the status letters mean. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3103 | </p> |
| 3104 | </dd> |
| 3105 | <dt class="hdlist1"> |
| 3106 | --submodule[=<format>] |
| 3107 | </dt> |
| 3108 | <dd> |
| 3109 | <p> |
Junio C Hamano | cd45166 | 2016-09-13 00:54:09 | [diff] [blame] | 3110 | Specify how differences in submodules are shown. When specifying |
| 3111 | <code>--submodule=short</code> the <em>short</em> format is used. This format just |
| 3112 | shows the names of the commits at the beginning and end of the range. |
| 3113 | When <code>--submodule</code> or <code>--submodule=log</code> is specified, the <em>log</em> |
| 3114 | format is used. This format lists the commits in the range like |
| 3115 | <a href="git-submodule.html">git-submodule(1)</a> <code>summary</code> does. When <code>--submodule=diff</code> |
| 3116 | is specified, the <em>diff</em> format is used. This format shows an |
| 3117 | inline diff of the changes in the submodule contents between the |
| 3118 | commit range. Defaults to <code>diff.submodule</code> or the <em>short</em> format |
| 3119 | if the config option is unset. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3120 | </p> |
| 3121 | </dd> |
| 3122 | <dt class="hdlist1"> |
| 3123 | --color[=<when>] |
| 3124 | </dt> |
| 3125 | <dd> |
| 3126 | <p> |
| 3127 | Show colored diff. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3128 | <code>--color</code> (i.e. without <em>=<when></em>) is the same as <code>--color=always</code>. |
| 3129 | <em><when></em> can be one of <code>always</code>, <code>never</code>, or <code>auto</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3130 | </p> |
| 3131 | </dd> |
| 3132 | <dt class="hdlist1"> |
| 3133 | --no-color |
| 3134 | </dt> |
| 3135 | <dd> |
| 3136 | <p> |
Junio C Hamano | 5f2627d | 2011-05-06 20:23:48 | [diff] [blame] | 3137 | Turn off colored diff. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3138 | It is the same as <code>--color=never</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3139 | </p> |
| 3140 | </dd> |
| 3141 | <dt class="hdlist1"> |
| 3142 | --word-diff[=<mode>] |
| 3143 | </dt> |
| 3144 | <dd> |
| 3145 | <p> |
| 3146 | Show a word diff, using the <mode> to delimit changed words. |
| 3147 | By default, words are delimited by whitespace; see |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3148 | <code>--word-diff-regex</code> below. The <mode> defaults to <em>plain</em>, and |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3149 | must be one of: |
| 3150 | </p> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 3151 | <div class="openblock"> |
| 3152 | <div class="content"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3153 | <div class="dlist"><dl> |
| 3154 | <dt class="hdlist1"> |
| 3155 | color |
| 3156 | </dt> |
| 3157 | <dd> |
| 3158 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3159 | Highlight changed words using only colors. Implies <code>--color</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3160 | </p> |
| 3161 | </dd> |
| 3162 | <dt class="hdlist1"> |
| 3163 | plain |
| 3164 | </dt> |
| 3165 | <dd> |
| 3166 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3167 | Show words as <code>[-removed-]</code> and <code>{+added+}</code>. Makes no |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3168 | attempts to escape the delimiters if they appear in the input, |
| 3169 | so the output may be ambiguous. |
| 3170 | </p> |
| 3171 | </dd> |
| 3172 | <dt class="hdlist1"> |
| 3173 | porcelain |
| 3174 | </dt> |
| 3175 | <dd> |
| 3176 | <p> |
| 3177 | Use a special line-based format intended for script |
| 3178 | consumption. Added/removed/unchanged runs are printed in the |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3179 | usual unified diff format, starting with a <code>+</code>/<code>-</code>/` ` |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3180 | character at the beginning of the line and extending to the |
| 3181 | end of the line. Newlines in the input are represented by a |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3182 | tilde <code>~</code> on a line of its own. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3183 | </p> |
| 3184 | </dd> |
| 3185 | <dt class="hdlist1"> |
| 3186 | none |
| 3187 | </dt> |
| 3188 | <dd> |
| 3189 | <p> |
| 3190 | Disable word diff again. |
| 3191 | </p> |
| 3192 | </dd> |
| 3193 | </dl></div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 3194 | </div></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3195 | <div class="paragraph"><p>Note that despite the name of the first mode, color is used to |
| 3196 | highlight the changed parts in all modes if enabled.</p></div> |
| 3197 | </dd> |
| 3198 | <dt class="hdlist1"> |
| 3199 | --word-diff-regex=<regex> |
| 3200 | </dt> |
| 3201 | <dd> |
| 3202 | <p> |
| 3203 | Use <regex> to decide what a word is, instead of considering |
| 3204 | runs of non-whitespace to be a word. Also implies |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3205 | <code>--word-diff</code> unless it was already enabled. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3206 | </p> |
| 3207 | <div class="paragraph"><p>Every non-overlapping match of the |
| 3208 | <regex> is considered a word. Anything between these matches is |
| 3209 | considered whitespace and ignored(!) for the purposes of finding |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3210 | differences. You may want to append <code>|[^[:space:]]</code> to your regular |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3211 | expression to make sure that it matches all non-whitespace characters. |
| 3212 | A match that contains a newline is silently truncated(!) at the |
| 3213 | newline.</p></div> |
Junio C Hamano | 713eded | 2015-12-03 00:24:02 | [diff] [blame] | 3214 | <div class="paragraph"><p>For example, <code>--word-diff-regex=.</code> will treat each character as a word |
| 3215 | and, correspondingly, show differences character by character.</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3216 | <div class="paragraph"><p>The regex can also be set via a diff driver or configuration option, see |
Junio C Hamano | 198b1f1 | 2016-05-17 22:27:24 | [diff] [blame] | 3217 | <a href="gitattributes.html">gitattributes(5)</a> or <a href="git-config.html">git-config(1)</a>. Giving it explicitly |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3218 | overrides any diff driver or configuration setting. Diff drivers |
| 3219 | override configuration settings.</p></div> |
| 3220 | </dd> |
| 3221 | <dt class="hdlist1"> |
| 3222 | --color-words[=<regex>] |
| 3223 | </dt> |
| 3224 | <dd> |
| 3225 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3226 | Equivalent to <code>--word-diff=color</code> plus (if a regex was |
| 3227 | specified) <code>--word-diff-regex=<regex></code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3228 | </p> |
| 3229 | </dd> |
| 3230 | <dt class="hdlist1"> |
| 3231 | --no-renames |
| 3232 | </dt> |
| 3233 | <dd> |
| 3234 | <p> |
| 3235 | Turn off rename detection, even when the configuration |
| 3236 | file gives the default to do so. |
| 3237 | </p> |
| 3238 | </dd> |
| 3239 | <dt class="hdlist1"> |
| 3240 | --check |
| 3241 | </dt> |
| 3242 | <dd> |
| 3243 | <p> |
Junio C Hamano | 84ea1e4 | 2016-04-08 21:53:48 | [diff] [blame] | 3244 | Warn if changes introduce conflict markers or whitespace errors. |
| 3245 | What are considered whitespace errors is controlled by <code>core.whitespace</code> |
Junio C Hamano | 6005bfa | 2011-06-23 00:51:22 | [diff] [blame] | 3246 | configuration. By default, trailing whitespaces (including |
| 3247 | lines that solely consist of whitespaces) and a space character |
| 3248 | that is immediately followed by a tab character inside the |
| 3249 | initial indent of the line are considered whitespace errors. |
| 3250 | Exits with non-zero status if problems are found. Not compatible |
| 3251 | with --exit-code. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3252 | </p> |
| 3253 | </dd> |
| 3254 | <dt class="hdlist1"> |
Junio C Hamano | 8c5d594 | 2015-06-11 19:37:48 | [diff] [blame] | 3255 | --ws-error-highlight=<kind> |
| 3256 | </dt> |
| 3257 | <dd> |
| 3258 | <p> |
| 3259 | Highlight whitespace errors on lines specified by <kind> |
| 3260 | in the color specified by <code>color.diff.whitespace</code>. <kind> |
| 3261 | is a comma separated list of <code>old</code>, <code>new</code>, <code>context</code>. When |
| 3262 | this option is not given, only whitespace errors in <code>new</code> |
| 3263 | lines are highlighted. E.g. <code>--ws-error-highlight=new,old</code> |
| 3264 | highlights whitespace errors on both deleted and added lines. |
| 3265 | <code>all</code> can be used as a short-hand for <code>old,new,context</code>. |
Junio C Hamano | 4a401d5 | 2016-10-26 22:24:37 | [diff] [blame] | 3266 | The <code>diff.wsErrorHighlight</code> configuration variable can be |
| 3267 | used to specify the default behaviour. |
Junio C Hamano | 8c5d594 | 2015-06-11 19:37:48 | [diff] [blame] | 3268 | </p> |
| 3269 | </dd> |
| 3270 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3271 | --full-index |
| 3272 | </dt> |
| 3273 | <dd> |
| 3274 | <p> |
| 3275 | Instead of the first handful of characters, show the full |
| 3276 | pre- and post-image blob object names on the "index" |
| 3277 | line when generating patch format output. |
| 3278 | </p> |
| 3279 | </dd> |
| 3280 | <dt class="hdlist1"> |
| 3281 | --binary |
| 3282 | </dt> |
| 3283 | <dd> |
| 3284 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3285 | In addition to <code>--full-index</code>, output a binary diff that |
| 3286 | can be applied with <code>git-apply</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3287 | </p> |
| 3288 | </dd> |
| 3289 | <dt class="hdlist1"> |
| 3290 | --abbrev[=<n>] |
| 3291 | </dt> |
| 3292 | <dd> |
| 3293 | <p> |
| 3294 | Instead of showing the full 40-byte hexadecimal object |
| 3295 | name in diff-raw format output and diff-tree header |
| 3296 | lines, show only a partial prefix. This is |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3297 | independent of the <code>--full-index</code> option above, which controls |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3298 | the diff-patch output format. Non default number of |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3299 | digits can be specified with <code>--abbrev=<n></code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3300 | </p> |
| 3301 | </dd> |
| 3302 | <dt class="hdlist1"> |
| 3303 | -B[<n>][/<m>] |
| 3304 | </dt> |
| 3305 | <dt class="hdlist1"> |
| 3306 | --break-rewrites[=[<n>][/<m>]] |
| 3307 | </dt> |
| 3308 | <dd> |
| 3309 | <p> |
| 3310 | Break complete rewrite changes into pairs of delete and |
| 3311 | create. This serves two purposes: |
| 3312 | </p> |
| 3313 | <div class="paragraph"><p>It affects the way a change that amounts to a total rewrite of a file |
| 3314 | not as a series of deletion and insertion mixed together with a very |
| 3315 | few lines that happen to match textually as the context, but as a |
| 3316 | single deletion of everything old followed by a single insertion of |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3317 | everything new, and the number <code>m</code> controls this aspect of the -B |
| 3318 | option (defaults to 60%). <code>-B/70%</code> specifies that less than 30% of the |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 3319 | original should remain in the result for Git to consider it a total |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3320 | rewrite (i.e. otherwise the resulting patch will be a series of |
| 3321 | deletion and insertion mixed together with context lines).</p></div> |
| 3322 | <div class="paragraph"><p>When used with -M, a totally-rewritten file is also considered as the |
| 3323 | source of a rename (usually -M only considers a file that disappeared |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3324 | as the source of a rename), and the number <code>n</code> controls this aspect of |
| 3325 | the -B option (defaults to 50%). <code>-B20%</code> specifies that a change with |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3326 | addition and deletion compared to 20% or more of the file’s size are |
| 3327 | eligible for being picked up as a possible source of a rename to |
| 3328 | another file.</p></div> |
| 3329 | </dd> |
| 3330 | <dt class="hdlist1"> |
| 3331 | -M[<n>] |
| 3332 | </dt> |
| 3333 | <dt class="hdlist1"> |
| 3334 | --find-renames[=<n>] |
| 3335 | </dt> |
| 3336 | <dd> |
| 3337 | <p> |
| 3338 | If generating diffs, detect and report renames for each commit. |
| 3339 | For following files across renames while traversing history, see |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3340 | <code>--follow</code>. |
| 3341 | If <code>n</code> is specified, it is a threshold on the similarity |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3342 | index (i.e. amount of addition/deletions compared to the |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3343 | file’s size). For example, <code>-M90%</code> means Git should consider a |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3344 | delete/add pair to be a rename if more than 90% of the file |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3345 | hasn’t changed. Without a <code>%</code> sign, the number is to be read as |
| 3346 | a fraction, with a decimal point before it. I.e., <code>-M5</code> becomes |
| 3347 | 0.5, and is thus the same as <code>-M50%</code>. Similarly, <code>-M05</code> is |
| 3348 | the same as <code>-M5%</code>. To limit detection to exact renames, use |
| 3349 | <code>-M100%</code>. The default similarity index is 50%. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3350 | </p> |
| 3351 | </dd> |
| 3352 | <dt class="hdlist1"> |
| 3353 | -C[<n>] |
| 3354 | </dt> |
| 3355 | <dt class="hdlist1"> |
| 3356 | --find-copies[=<n>] |
| 3357 | </dt> |
| 3358 | <dd> |
| 3359 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3360 | Detect copies as well as renames. See also <code>--find-copies-harder</code>. |
| 3361 | If <code>n</code> is specified, it has the same meaning as for <code>-M<n></code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3362 | </p> |
| 3363 | </dd> |
| 3364 | <dt class="hdlist1"> |
| 3365 | --find-copies-harder |
| 3366 | </dt> |
| 3367 | <dd> |
| 3368 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3369 | For performance reasons, by default, <code>-C</code> option finds copies only |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3370 | if the original file of the copy was modified in the same |
| 3371 | changeset. This flag makes the command |
| 3372 | inspect unmodified files as candidates for the source of |
| 3373 | copy. This is a very expensive operation for large |
| 3374 | projects, so use it with caution. Giving more than one |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3375 | <code>-C</code> option has the same effect. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3376 | </p> |
| 3377 | </dd> |
| 3378 | <dt class="hdlist1"> |
Junio C Hamano | b02377c | 2011-04-28 22:26:02 | [diff] [blame] | 3379 | -D |
| 3380 | </dt> |
| 3381 | <dt class="hdlist1"> |
| 3382 | --irreversible-delete |
| 3383 | </dt> |
| 3384 | <dd> |
| 3385 | <p> |
| 3386 | Omit the preimage for deletes, i.e. print only the header but not |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3387 | the diff between the preimage and <code>/dev/null</code>. The resulting patch |
| 3388 | is not meant to be applied with <code>patch</code> or <code>git apply</code>; this is |
Junio C Hamano | b02377c | 2011-04-28 22:26:02 | [diff] [blame] | 3389 | solely for people who want to just concentrate on reviewing the |
| 3390 | text after the change. In addition, the output obviously lack |
| 3391 | enough information to apply such a patch in reverse, even manually, |
| 3392 | hence the name of the option. |
| 3393 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3394 | <div class="paragraph"><p>When used together with <code>-B</code>, omit also the preimage in the deletion part |
Junio C Hamano | b02377c | 2011-04-28 22:26:02 | [diff] [blame] | 3395 | of a delete/create pair.</p></div> |
| 3396 | </dd> |
| 3397 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3398 | -l<num> |
| 3399 | </dt> |
| 3400 | <dd> |
| 3401 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3402 | The <code>-M</code> and <code>-C</code> options require O(n^2) processing time where n |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3403 | is the number of potential rename/copy targets. This |
| 3404 | option prevents rename/copy detection from running if |
| 3405 | the number of rename/copy targets exceeds the specified |
| 3406 | number. |
| 3407 | </p> |
| 3408 | </dd> |
| 3409 | <dt class="hdlist1"> |
| 3410 | --diff-filter=[(A|C|D|M|R|T|U|X|B)…[*]] |
| 3411 | </dt> |
| 3412 | <dd> |
| 3413 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3414 | Select only files that are Added (<code>A</code>), Copied (<code>C</code>), |
| 3415 | Deleted (<code>D</code>), Modified (<code>M</code>), Renamed (<code>R</code>), have their |
| 3416 | type (i.e. regular file, symlink, submodule, …) changed (<code>T</code>), |
| 3417 | are Unmerged (<code>U</code>), are |
| 3418 | Unknown (<code>X</code>), or have had their pairing Broken (<code>B</code>). |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3419 | Any combination of the filter characters (including none) can be used. |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3420 | When <code>*</code> (All-or-none) is added to the combination, all |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3421 | paths are selected if there is any file that matches |
| 3422 | other criteria in the comparison; if there is no file |
| 3423 | that matches other criteria, nothing is selected. |
| 3424 | </p> |
Junio C Hamano | eed15af | 2016-07-25 22:49:42 | [diff] [blame] | 3425 | <div class="paragraph"><p>Also, these upper-case letters can be downcased to exclude. E.g. |
| 3426 | <code>--diff-filter=ad</code> excludes added and deleted paths.</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3427 | </dd> |
| 3428 | <dt class="hdlist1"> |
| 3429 | -S<string> |
| 3430 | </dt> |
| 3431 | <dd> |
| 3432 | <p> |
Junio C Hamano | f1f5a7b | 2013-06-11 22:23:52 | [diff] [blame] | 3433 | Look for differences that change the number of occurrences of |
| 3434 | the specified string (i.e. addition/deletion) in a file. |
| 3435 | Intended for the scripter’s use. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3436 | </p> |
Junio C Hamano | f1f5a7b | 2013-06-11 22:23:52 | [diff] [blame] | 3437 | <div class="paragraph"><p>It is useful when you’re looking for an exact block of code (like a |
| 3438 | struct), and want to know the history of that block since it first |
| 3439 | came into being: use the feature iteratively to feed the interesting |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3440 | block in the preimage back into <code>-S</code>, and keep going until you get the |
Junio C Hamano | f1f5a7b | 2013-06-11 22:23:52 | [diff] [blame] | 3441 | very first version of the block.</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3442 | </dd> |
| 3443 | <dt class="hdlist1"> |
| 3444 | -G<regex> |
| 3445 | </dt> |
| 3446 | <dd> |
| 3447 | <p> |
Junio C Hamano | f1f5a7b | 2013-06-11 22:23:52 | [diff] [blame] | 3448 | Look for differences whose patch text contains added/removed |
| 3449 | lines that match <regex>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3450 | </p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3451 | <div class="paragraph"><p>To illustrate the difference between <code>-S<regex> --pickaxe-regex</code> and |
| 3452 | <code>-G<regex></code>, consider a commit with the following diff in the same |
Junio C Hamano | f1f5a7b | 2013-06-11 22:23:52 | [diff] [blame] | 3453 | file:</p></div> |
| 3454 | <div class="listingblock"> |
| 3455 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3456 | <pre><code>+ return !regexec(regexp, two->ptr, 1, &regmatch, 0); |
Junio C Hamano | f1f5a7b | 2013-06-11 22:23:52 | [diff] [blame] | 3457 | ... |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3458 | - hit = !regexec(regexp, mf2.ptr, 1, &regmatch, 0);</code></pre> |
Junio C Hamano | f1f5a7b | 2013-06-11 22:23:52 | [diff] [blame] | 3459 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3460 | <div class="paragraph"><p>While <code>git log -G"regexec\(regexp"</code> will show this commit, <code>git log |
| 3461 | -S"regexec\(regexp" --pickaxe-regex</code> will not (because the number of |
Junio C Hamano | f1f5a7b | 2013-06-11 22:23:52 | [diff] [blame] | 3462 | occurrences of that string did not change).</p></div> |
| 3463 | <div class="paragraph"><p>See the <em>pickaxe</em> entry in <a href="gitdiffcore.html">gitdiffcore(7)</a> for more |
| 3464 | information.</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3465 | </dd> |
| 3466 | <dt class="hdlist1"> |
| 3467 | --pickaxe-all |
| 3468 | </dt> |
| 3469 | <dd> |
| 3470 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3471 | When <code>-S</code> or <code>-G</code> finds a change, show all the changes in that |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3472 | changeset, not just the files that contain the change |
| 3473 | in <string>. |
| 3474 | </p> |
| 3475 | </dd> |
| 3476 | <dt class="hdlist1"> |
| 3477 | --pickaxe-regex |
| 3478 | </dt> |
| 3479 | <dd> |
| 3480 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3481 | Treat the <string> given to <code>-S</code> as an extended POSIX regular |
Junio C Hamano | f1f5a7b | 2013-06-11 22:23:52 | [diff] [blame] | 3482 | expression to match. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3483 | </p> |
| 3484 | </dd> |
| 3485 | <dt class="hdlist1"> |
| 3486 | -O<orderfile> |
| 3487 | </dt> |
| 3488 | <dd> |
| 3489 | <p> |
Junio C Hamano | bcd98f4 | 2017-01-24 00:12:16 | [diff] [blame] | 3490 | Control the order in which files appear in the output. |
Junio C Hamano | 322c624 | 2015-03-23 21:32:46 | [diff] [blame] | 3491 | This overrides the <code>diff.orderFile</code> configuration variable |
| 3492 | (see <a href="git-config.html">git-config(1)</a>). To cancel <code>diff.orderFile</code>, |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3493 | use <code>-O/dev/null</code>. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3494 | </p> |
Junio C Hamano | bcd98f4 | 2017-01-24 00:12:16 | [diff] [blame] | 3495 | <div class="paragraph"><p>The output order is determined by the order of glob patterns in |
| 3496 | <orderfile>. |
| 3497 | All files with pathnames that match the first pattern are output |
| 3498 | first, all files with pathnames that match the second pattern (but not |
| 3499 | the first) are output next, and so on. |
| 3500 | All files with pathnames that do not match any pattern are output |
| 3501 | last, as if there was an implicit match-all pattern at the end of the |
| 3502 | file. |
| 3503 | If multiple pathnames have the same rank (they match the same pattern |
| 3504 | but no earlier patterns), their output order relative to each other is |
| 3505 | the normal order.</p></div> |
| 3506 | <div class="paragraph"><p><orderfile> is parsed as follows:</p></div> |
| 3507 | <div class="openblock"> |
| 3508 | <div class="content"> |
| 3509 | <div class="ulist"><ul> |
| 3510 | <li> |
| 3511 | <p> |
| 3512 | Blank lines are ignored, so they can be used as separators for |
| 3513 | readability. |
| 3514 | </p> |
| 3515 | </li> |
| 3516 | <li> |
| 3517 | <p> |
| 3518 | Lines starting with a hash ("<code>#</code>") are ignored, so they can be used |
| 3519 | for comments. Add a backslash ("<code>\</code>") to the beginning of the |
| 3520 | pattern if it starts with a hash. |
| 3521 | </p> |
| 3522 | </li> |
| 3523 | <li> |
| 3524 | <p> |
| 3525 | Each other line contains a single pattern. |
| 3526 | </p> |
| 3527 | </li> |
| 3528 | </ul></div> |
| 3529 | </div></div> |
| 3530 | <div class="paragraph"><p>Patterns have the same syntax and semantics as patterns used for |
| 3531 | fnmantch(3) without the FNM_PATHNAME flag, except a pathname also |
| 3532 | matches a pattern if removing any number of the final pathname |
| 3533 | components matches the pattern. For example, the pattern "<code>foo*bar</code>" |
| 3534 | matches "<code>fooasdfbar</code>" and "<code>foo/bar/baz/asdf</code>" but not "<code>foobarx</code>".</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3535 | </dd> |
| 3536 | <dt class="hdlist1"> |
| 3537 | -R |
| 3538 | </dt> |
| 3539 | <dd> |
| 3540 | <p> |
| 3541 | Swap two inputs; that is, show differences from index or |
| 3542 | on-disk file to tree contents. |
| 3543 | </p> |
| 3544 | </dd> |
| 3545 | <dt class="hdlist1"> |
| 3546 | --relative[=<path>] |
| 3547 | </dt> |
| 3548 | <dd> |
| 3549 | <p> |
| 3550 | When run from a subdirectory of the project, it can be |
| 3551 | told to exclude changes outside the directory and show |
| 3552 | pathnames relative to it with this option. When you are |
| 3553 | not in a subdirectory (e.g. in a bare repository), you |
| 3554 | can name which subdirectory to make the output relative |
| 3555 | to by giving a <path> as an argument. |
| 3556 | </p> |
| 3557 | </dd> |
| 3558 | <dt class="hdlist1"> |
| 3559 | -a |
| 3560 | </dt> |
| 3561 | <dt class="hdlist1"> |
| 3562 | --text |
| 3563 | </dt> |
| 3564 | <dd> |
| 3565 | <p> |
| 3566 | Treat all files as text. |
| 3567 | </p> |
| 3568 | </dd> |
| 3569 | <dt class="hdlist1"> |
| 3570 | --ignore-space-at-eol |
| 3571 | </dt> |
| 3572 | <dd> |
| 3573 | <p> |
| 3574 | Ignore changes in whitespace at EOL. |
| 3575 | </p> |
| 3576 | </dd> |
| 3577 | <dt class="hdlist1"> |
| 3578 | -b |
| 3579 | </dt> |
| 3580 | <dt class="hdlist1"> |
| 3581 | --ignore-space-change |
| 3582 | </dt> |
| 3583 | <dd> |
| 3584 | <p> |
| 3585 | Ignore changes in amount of whitespace. This ignores whitespace |
| 3586 | at line end, and considers all other sequences of one or |
| 3587 | more whitespace characters to be equivalent. |
| 3588 | </p> |
| 3589 | </dd> |
| 3590 | <dt class="hdlist1"> |
| 3591 | -w |
| 3592 | </dt> |
| 3593 | <dt class="hdlist1"> |
| 3594 | --ignore-all-space |
| 3595 | </dt> |
| 3596 | <dd> |
| 3597 | <p> |
| 3598 | Ignore whitespace when comparing lines. This ignores |
| 3599 | differences even if one line has whitespace where the other |
| 3600 | line has none. |
| 3601 | </p> |
| 3602 | </dd> |
| 3603 | <dt class="hdlist1"> |
Junio C Hamano | a195230 | 2013-07-01 21:31:18 | [diff] [blame] | 3604 | --ignore-blank-lines |
| 3605 | </dt> |
| 3606 | <dd> |
| 3607 | <p> |
| 3608 | Ignore changes whose lines are all blank. |
| 3609 | </p> |
| 3610 | </dd> |
| 3611 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3612 | --inter-hunk-context=<lines> |
| 3613 | </dt> |
| 3614 | <dd> |
| 3615 | <p> |
| 3616 | Show the context between diff hunks, up to the specified number |
| 3617 | of lines, thereby fusing hunks that are close to each other. |
Junio C Hamano | bcd98f4 | 2017-01-24 00:12:16 | [diff] [blame] | 3618 | Defaults to <code>diff.interHunkContext</code> or 0 if the config option |
| 3619 | is unset. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3620 | </p> |
| 3621 | </dd> |
| 3622 | <dt class="hdlist1"> |
Junio C Hamano | 11821ed | 2011-10-19 18:42:09 | [diff] [blame] | 3623 | -W |
| 3624 | </dt> |
| 3625 | <dt class="hdlist1"> |
| 3626 | --function-context |
| 3627 | </dt> |
| 3628 | <dd> |
| 3629 | <p> |
| 3630 | Show whole surrounding functions of changes. |
| 3631 | </p> |
| 3632 | </dd> |
| 3633 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3634 | --ext-diff |
| 3635 | </dt> |
| 3636 | <dd> |
| 3637 | <p> |
| 3638 | Allow an external diff helper to be executed. If you set an |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 3639 | external diff driver with <a href="gitattributes.html">gitattributes(5)</a>, you need |
| 3640 | to use this option with <a href="git-log.html">git-log(1)</a> and friends. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3641 | </p> |
| 3642 | </dd> |
| 3643 | <dt class="hdlist1"> |
| 3644 | --no-ext-diff |
| 3645 | </dt> |
| 3646 | <dd> |
| 3647 | <p> |
| 3648 | Disallow external diff drivers. |
| 3649 | </p> |
| 3650 | </dd> |
| 3651 | <dt class="hdlist1"> |
Junio C Hamano | c652aed | 2011-07-07 01:14:31 | [diff] [blame] | 3652 | --textconv |
| 3653 | </dt> |
| 3654 | <dt class="hdlist1"> |
| 3655 | --no-textconv |
| 3656 | </dt> |
| 3657 | <dd> |
| 3658 | <p> |
| 3659 | Allow (or disallow) external text conversion filters to be run |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 3660 | when comparing binary files. See <a href="gitattributes.html">gitattributes(5)</a> for |
Junio C Hamano | c652aed | 2011-07-07 01:14:31 | [diff] [blame] | 3661 | details. Because textconv filters are typically a one-way |
| 3662 | conversion, the resulting diff is suitable for human |
| 3663 | consumption, but cannot be applied. For this reason, textconv |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 3664 | filters are enabled by default only for <a href="git-diff.html">git-diff(1)</a> and |
| 3665 | <a href="git-log.html">git-log(1)</a>, but not for <a href="git-format-patch.html">git-format-patch(1)</a> or |
Junio C Hamano | c652aed | 2011-07-07 01:14:31 | [diff] [blame] | 3666 | diff plumbing commands. |
| 3667 | </p> |
| 3668 | </dd> |
| 3669 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3670 | --ignore-submodules[=<when>] |
| 3671 | </dt> |
| 3672 | <dd> |
| 3673 | <p> |
| 3674 | Ignore changes to submodules in the diff generation. <when> can be |
Junio C Hamano | c710296 | 2013-05-29 23:57:17 | [diff] [blame] | 3675 | either "none", "untracked", "dirty" or "all", which is the default. |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3676 | Using "none" will consider the submodule modified when it either contains |
| 3677 | untracked or modified files or its HEAD differs from the commit recorded |
| 3678 | in the superproject and can be used to override any settings of the |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 3679 | <em>ignore</em> option in <a href="git-config.html">git-config(1)</a> or <a href="gitmodules.html">gitmodules(5)</a>. When |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3680 | "untracked" is used submodules are not considered dirty when they only |
| 3681 | contain untracked content (but they are still scanned for modified |
| 3682 | content). Using "dirty" ignores all changes to the work tree of submodules, |
| 3683 | only changes to the commits stored in the superproject are shown (this was |
| 3684 | the behavior until 1.7.0). Using "all" hides all changes to submodules. |
| 3685 | </p> |
| 3686 | </dd> |
| 3687 | <dt class="hdlist1"> |
| 3688 | --src-prefix=<prefix> |
| 3689 | </dt> |
| 3690 | <dd> |
| 3691 | <p> |
| 3692 | Show the given source prefix instead of "a/". |
| 3693 | </p> |
| 3694 | </dd> |
| 3695 | <dt class="hdlist1"> |
| 3696 | --dst-prefix=<prefix> |
| 3697 | </dt> |
| 3698 | <dd> |
| 3699 | <p> |
| 3700 | Show the given destination prefix instead of "b/". |
| 3701 | </p> |
| 3702 | </dd> |
| 3703 | <dt class="hdlist1"> |
| 3704 | --no-prefix |
| 3705 | </dt> |
| 3706 | <dd> |
| 3707 | <p> |
| 3708 | Do not show any source or destination prefix. |
| 3709 | </p> |
| 3710 | </dd> |
Junio C Hamano | cd45166 | 2016-09-13 00:54:09 | [diff] [blame] | 3711 | <dt class="hdlist1"> |
| 3712 | --line-prefix=<prefix> |
| 3713 | </dt> |
| 3714 | <dd> |
| 3715 | <p> |
| 3716 | Prepend an additional prefix to every line of output. |
| 3717 | </p> |
| 3718 | </dd> |
Junio C Hamano | f7017f1 | 2016-10-27 23:31:34 | [diff] [blame] | 3719 | <dt class="hdlist1"> |
| 3720 | --ita-invisible-in-index |
| 3721 | </dt> |
| 3722 | <dd> |
| 3723 | <p> |
| 3724 | By default entries added by "git add -N" appear as an existing |
| 3725 | empty file in "git diff" and a new file in "git diff --cached". |
| 3726 | This option makes the entry appear as a new file in "git diff" |
| 3727 | and non-existent in "git diff --cached". This option could be |
| 3728 | reverted with <code>--ita-visible-in-index</code>. Both options are |
| 3729 | experimental and could be removed in future. |
| 3730 | </p> |
| 3731 | </dd> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3732 | </dl></div> |
| 3733 | <div class="paragraph"><p>For more detailed explanation on these common options, see also |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 3734 | <a href="gitdiffcore.html">gitdiffcore(7)</a>.</p></div> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 3735 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 3736 | </div> |
| 3737 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3738 | <h2 id="_generating_patches_with_p">Generating patches with -p</h2> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3739 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3740 | <div class="paragraph"><p>When "git-diff-index", "git-diff-tree", or "git-diff-files" are run |
Junio C Hamano | 92d8037 | 2016-07-13 22:00:05 | [diff] [blame] | 3741 | with a <code>-p</code> option, "git diff" without the <code>--raw</code> option, or |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3742 | "git log" with the "-p" option, they |
| 3743 | do not produce the output described above; instead they produce a |
| 3744 | patch file. You can customize the creation of such patches via the |
Junio C Hamano | 042f214 | 2016-06-27 18:05:05 | [diff] [blame] | 3745 | <code>GIT_EXTERNAL_DIFF</code> and the <code>GIT_DIFF_OPTS</code> environment variables.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3746 | <div class="paragraph"><p>What the -p option produces is slightly different from the traditional |
Junio C Hamano | 7f9fa86 | 2010-10-19 23:51:14 | [diff] [blame] | 3747 | diff format:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3748 | <div class="olist arabic"><ol class="arabic"> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3749 | <li> |
| 3750 | <p> |
Junio C Hamano | 7f9fa86 | 2010-10-19 23:51:14 | [diff] [blame] | 3751 | It is preceded with a "git diff" header that looks like this: |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3752 | </p> |
| 3753 | <div class="literalblock"> |
| 3754 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3755 | <pre><code>diff --git a/file1 b/file2</code></pre> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3756 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3757 | <div class="paragraph"><p>The <code>a/</code> and <code>b/</code> filenames are the same unless rename/copy is |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3758 | involved. Especially, even for a creation or a deletion, |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3759 | <code>/dev/null</code> is <em>not</em> used in place of the <code>a/</code> or <code>b/</code> filenames.</p></div> |
| 3760 | <div class="paragraph"><p>When rename/copy is involved, <code>file1</code> and <code>file2</code> show the |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3761 | name of the source file of the rename/copy and the name of |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3762 | the file that rename/copy produces, respectively.</p></div> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3763 | </li> |
| 3764 | <li> |
| 3765 | <p> |
| 3766 | It is followed by one or more extended header lines: |
| 3767 | </p> |
| 3768 | <div class="literalblock"> |
| 3769 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3770 | <pre><code>old mode <mode> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3771 | new mode <mode> |
| 3772 | deleted file mode <mode> |
| 3773 | new file mode <mode> |
| 3774 | copy from <path> |
| 3775 | copy to <path> |
| 3776 | rename from <path> |
| 3777 | rename to <path> |
| 3778 | similarity index <number> |
| 3779 | dissimilarity index <number> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3780 | index <hash>..<hash> <mode></code></pre> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3781 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3782 | <div class="paragraph"><p>File modes are printed as 6-digit octal numbers including the file type |
Junio C Hamano | 7f9fa86 | 2010-10-19 23:51:14 | [diff] [blame] | 3783 | and file permission bits.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3784 | <div class="paragraph"><p>Path names in extended headers do not include the <code>a/</code> and <code>b/</code> prefixes.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3785 | <div class="paragraph"><p>The similarity index is the percentage of unchanged lines, and |
Junio C Hamano | 7f9fa86 | 2010-10-19 23:51:14 | [diff] [blame] | 3786 | the dissimilarity index is the percentage of changed lines. It |
| 3787 | is a rounded down integer, followed by a percent sign. The |
| 3788 | similarity index value of 100% is thus reserved for two equal |
| 3789 | files, while 100% dissimilarity means that no line from the old |
| 3790 | file made it into the new one.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3791 | <div class="paragraph"><p>The index line includes the SHA-1 checksum before and after the change. |
Junio C Hamano | 7f9fa86 | 2010-10-19 23:51:14 | [diff] [blame] | 3792 | The <mode> is included if the file mode does not change; otherwise, |
| 3793 | separate lines indicate the old and the new mode.</p></div> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3794 | </li> |
| 3795 | <li> |
| 3796 | <p> |
Junio C Hamano | 0f6f3bf | 2017-03-13 07:01:53 | [diff] [blame] | 3797 | Pathnames with "unusual" characters are quoted as explained for |
| 3798 | the configuration variable <code>core.quotePath</code> (see |
| 3799 | <a href="git-config.html">git-config(1)</a>). |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3800 | </p> |
| 3801 | </li> |
Junio C Hamano | 7f9fa86 | 2010-10-19 23:51:14 | [diff] [blame] | 3802 | <li> |
| 3803 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3804 | All the <code>file1</code> files in the output refer to files before the |
| 3805 | commit, and all the <code>file2</code> files refer to files after the commit. |
Junio C Hamano | 7f9fa86 | 2010-10-19 23:51:14 | [diff] [blame] | 3806 | It is incorrect to apply each change to each file sequentially. For |
| 3807 | example, this patch will swap a and b: |
| 3808 | </p> |
| 3809 | <div class="literalblock"> |
| 3810 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3811 | <pre><code>diff --git a/a b/b |
Junio C Hamano | 7f9fa86 | 2010-10-19 23:51:14 | [diff] [blame] | 3812 | rename from a |
| 3813 | rename to b |
| 3814 | diff --git a/b b/a |
| 3815 | rename from b |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3816 | rename to a</code></pre> |
Junio C Hamano | 7f9fa86 | 2010-10-19 23:51:14 | [diff] [blame] | 3817 | </div></div> |
| 3818 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3819 | </ol></div> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3820 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 3821 | </div> |
| 3822 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3823 | <h2 id="_combined_diff_format">combined diff format</h2> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3824 | <div class="sectionbody"> |
Junio C Hamano | 1dbca52 | 2015-05-22 20:48:55 | [diff] [blame] | 3825 | <div class="paragraph"><p>Any diff-generating command can take the <code>-c</code> or <code>--cc</code> option to |
Junio C Hamano | c5be4cc | 2011-03-09 07:20:43 | [diff] [blame] | 3826 | produce a <em>combined diff</em> when showing a merge. This is the default |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 3827 | format when showing merges with <a href="git-diff.html">git-diff(1)</a> or |
Junio C Hamano | 1dbca52 | 2015-05-22 20:48:55 | [diff] [blame] | 3828 | <a href="git-show.html">git-show(1)</a>. Note also that you can give the <code>-m</code> option to any |
Junio C Hamano | c5be4cc | 2011-03-09 07:20:43 | [diff] [blame] | 3829 | of these commands to force generation of diffs with individual parents |
| 3830 | of a merge.</p></div> |
| 3831 | <div class="paragraph"><p>A <em>combined diff</em> format looks like this:</p></div> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3832 | <div class="listingblock"> |
| 3833 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3834 | <pre><code>diff --combined describe.c |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3835 | index fabadb8,cc95eb0..4866510 |
| 3836 | --- a/describe.c |
| 3837 | +++ b/describe.c |
| 3838 | @@@ -98,20 -98,12 +98,20 @@@ |
| 3839 | return (a_date > b_date) ? -1 : (a_date == b_date) ? 0 : 1; |
| 3840 | } |
| 3841 | |
| 3842 | - static void describe(char *arg) |
| 3843 | -static void describe(struct commit *cmit, int last_one) |
| 3844 | ++static void describe(char *arg, int last_one) |
| 3845 | { |
| 3846 | + unsigned char sha1[20]; |
| 3847 | + struct commit *cmit; |
| 3848 | struct commit_list *list; |
| 3849 | static int initialized = 0; |
| 3850 | struct commit_name *n; |
| 3851 | |
| 3852 | + if (get_sha1(arg, sha1) < 0) |
| 3853 | + usage(describe_usage); |
| 3854 | + cmit = lookup_commit_reference(sha1); |
| 3855 | + if (!cmit) |
| 3856 | + usage(describe_usage); |
| 3857 | + |
| 3858 | if (!initialized) { |
| 3859 | initialized = 1; |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3860 | for_each_ref(get_name);</code></pre> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3861 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3862 | <div class="olist arabic"><ol class="arabic"> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3863 | <li> |
| 3864 | <p> |
| 3865 | It is preceded with a "git diff" header, that looks like |
Junio C Hamano | 92d8037 | 2016-07-13 22:00:05 | [diff] [blame] | 3866 | this (when <code>-c</code> option is used): |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3867 | </p> |
| 3868 | <div class="literalblock"> |
| 3869 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3870 | <pre><code>diff --combined file</code></pre> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3871 | </div></div> |
Junio C Hamano | 92d8037 | 2016-07-13 22:00:05 | [diff] [blame] | 3872 | <div class="paragraph"><p>or like this (when <code>--cc</code> option is used):</p></div> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3873 | <div class="literalblock"> |
| 3874 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3875 | <pre><code>diff --cc file</code></pre> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3876 | </div></div> |
| 3877 | </li> |
| 3878 | <li> |
| 3879 | <p> |
| 3880 | It is followed by one or more extended header lines |
| 3881 | (this example shows a merge with two parents): |
| 3882 | </p> |
| 3883 | <div class="literalblock"> |
| 3884 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3885 | <pre><code>index <hash>,<hash>..<hash> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3886 | mode <mode>,<mode>..<mode> |
| 3887 | new file mode <mode> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3888 | deleted file mode <mode>,<mode></code></pre> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3889 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3890 | <div class="paragraph"><p>The <code>mode <mode>,<mode>..<mode></code> line appears only if at least one of |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3891 | the <mode> is different from the rest. Extended headers with |
| 3892 | information about detected contents movement (renames and |
| 3893 | copying detection) are designed to work with diff of two |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3894 | <tree-ish> and are not used by combined diff format.</p></div> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3895 | </li> |
| 3896 | <li> |
| 3897 | <p> |
| 3898 | It is followed by two-line from-file/to-file header |
| 3899 | </p> |
| 3900 | <div class="literalblock"> |
| 3901 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3902 | <pre><code>--- a/file |
| 3903 | +++ b/file</code></pre> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3904 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3905 | <div class="paragraph"><p>Similar to two-line header for traditional <em>unified</em> diff |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3906 | format, <code>/dev/null</code> is used to signal created or deleted |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3907 | files.</p></div> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3908 | </li> |
| 3909 | <li> |
| 3910 | <p> |
| 3911 | Chunk header format is modified to prevent people from |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3912 | accidentally feeding it to <code>patch -p1</code>. Combined diff format |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3913 | was created for review of merge commit changes, and was not |
| 3914 | meant for apply. The change is similar to the change in the |
| 3915 | extended <em>index</em> header: |
| 3916 | </p> |
| 3917 | <div class="literalblock"> |
| 3918 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3919 | <pre><code>@@@ <from-file-range> <from-file-range> <to-file-range> @@@</code></pre> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3920 | </div></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3921 | <div class="paragraph"><p>There are (number of parents + 1) <code>@</code> characters in the chunk |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3922 | header for combined diff format.</p></div> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3923 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3924 | </ol></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3925 | <div class="paragraph"><p>Unlike the traditional <em>unified</em> diff format, which shows two |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3926 | files A and B with a single column that has <code>-</code> (minus — appears in A but removed in B), <code>+</code> (plus — missing in A but |
| 3927 | added to B), or <code>" "</code> (space — unchanged) prefix, this format |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3928 | compares two or more files file1, file2,… with one file X, and |
| 3929 | shows how X differs from each of fileN. One column for each of |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3930 | fileN is prepended to the output line to note how X’s line is |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3931 | different from it.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3932 | <div class="paragraph"><p>A <code>-</code> character in the column N means that the line appears in |
| 3933 | fileN but it does not appear in the result. A <code>+</code> character |
Junio C Hamano | 54bf1e2 | 2008-12-20 06:30:11 | [diff] [blame] | 3934 | in the column N means that the line appears in the result, |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3935 | and fileN does not have that line (in other words, the line was |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3936 | added, from the point of view of that parent).</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3937 | <div class="paragraph"><p>In the above example output, the function signature was changed |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3938 | from both files (hence two <code>-</code> removals from both file1 and |
| 3939 | file2, plus <code>++</code> to mean one line that was added does not appear |
Junio C Hamano | d75148a | 2014-04-08 19:48:38 | [diff] [blame] | 3940 | in either file1 or file2). Also eight other lines are the same |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3941 | from file1 but do not appear in file2 (hence prefixed with <code>+</code>).</p></div> |
| 3942 | <div class="paragraph"><p>When shown by <code>git diff-tree -c</code>, it compares the parents of a |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3943 | merge commit with the merge result (i.e. file1..fileN are the |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3944 | parents). When shown by <code>git diff-files -c</code>, it compares the |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3945 | two unresolved merge parents with the working tree file |
| 3946 | (i.e. file1 is stage 2 aka "our version", file2 is stage 3 aka |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 3947 | "their version").</p></div> |
Junio C Hamano | 00b8b63 | 2007-12-07 09:50:49 | [diff] [blame] | 3948 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 3949 | </div> |
| 3950 | <div class="sect1"> |
Junio C Hamano | 58f587a | 2013-07-22 19:20:59 | [diff] [blame] | 3951 | <h2 id="_examples">EXAMPLES</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 3952 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3953 | <div class="dlist"><dl> |
| 3954 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3955 | <code>git log --no-merges</code> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 3956 | </dt> |
| 3957 | <dd> |
| 3958 | <p> |
| 3959 | Show the whole commit history, but skip any merges |
| 3960 | </p> |
| 3961 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3962 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3963 | <code>git log v2.6.12.. include/scsi drivers/scsi</code> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 3964 | </dt> |
| 3965 | <dd> |
| 3966 | <p> |
| 3967 | Show all commits since version <em>v2.6.12</em> that changed any file |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3968 | in the <code>include/scsi</code> or <code>drivers/scsi</code> subdirectories |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 3969 | </p> |
| 3970 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3971 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3972 | <code>git log --since="2 weeks ago" -- gitk</code> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 3973 | </dt> |
| 3974 | <dd> |
| 3975 | <p> |
| 3976 | Show the changes during the last two weeks to the file <em>gitk</em>. |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 3977 | The “--” is necessary to avoid confusion with the <strong>branch</strong> named |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 3978 | <em>gitk</em> |
| 3979 | </p> |
| 3980 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3981 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3982 | <code>git log --name-status release..test</code> |
Junio C Hamano | ba7c8d8 | 2006-04-15 06:17:42 | [diff] [blame] | 3983 | </dt> |
| 3984 | <dd> |
| 3985 | <p> |
| 3986 | Show the commits that are in the "test" branch but not yet |
| 3987 | in the "release" branch, along with the list of paths |
| 3988 | each commit modifies. |
| 3989 | </p> |
| 3990 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 3991 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3992 | <code>git log --follow builtin/rev-list.c</code> |
Junio C Hamano | 235d53f | 2007-07-13 00:25:15 | [diff] [blame] | 3993 | </dt> |
| 3994 | <dd> |
| 3995 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 3996 | Shows the commits that changed <code>builtin/rev-list.c</code>, including |
Junio C Hamano | 235d53f | 2007-07-13 00:25:15 | [diff] [blame] | 3997 | those commits that occurred before the file was given its |
| 3998 | present name. |
| 3999 | </p> |
| 4000 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4001 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4002 | <code>git log --branches --not --remotes=origin</code> |
Junio C Hamano | 57827fb | 2010-01-23 03:02:50 | [diff] [blame] | 4003 | </dt> |
| 4004 | <dd> |
| 4005 | <p> |
| 4006 | Shows all commits that are in any of local branches but not in |
Junio C Hamano | 97bcb48 | 2010-11-25 03:16:07 | [diff] [blame] | 4007 | any of remote-tracking branches for <em>origin</em> (what you have that |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4008 | origin doesn’t). |
Junio C Hamano | 57827fb | 2010-01-23 03:02:50 | [diff] [blame] | 4009 | </p> |
| 4010 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4011 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4012 | <code>git log master --not --remotes=*/master</code> |
Junio C Hamano | 57827fb | 2010-01-23 03:02:50 | [diff] [blame] | 4013 | </dt> |
| 4014 | <dd> |
| 4015 | <p> |
| 4016 | Shows all commits that are in local master but not in any remote |
| 4017 | repository master branches. |
| 4018 | </p> |
| 4019 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4020 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4021 | <code>git log -p -m --first-parent</code> |
Junio C Hamano | 3166736 | 2010-03-25 00:38:53 | [diff] [blame] | 4022 | </dt> |
| 4023 | <dd> |
| 4024 | <p> |
| 4025 | Shows the history including change diffs, but only from the |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 4026 | “main branch” perspective, skipping commits that come from merged |
Junio C Hamano | 3166736 | 2010-03-25 00:38:53 | [diff] [blame] | 4027 | branches, and showing full diffs of changes introduced by the merges. |
| 4028 | This makes sense only when following a strict policy of merging all |
| 4029 | topic branches when staying on a single integration branch. |
| 4030 | </p> |
| 4031 | </dd> |
Junio C Hamano | 693e709 | 2012-09-12 22:56:53 | [diff] [blame] | 4032 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4033 | <code>git log -L '/int main/',/^}/:main.c</code> |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 4034 | </dt> |
| 4035 | <dd> |
| 4036 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4037 | Shows how the function <code>main()</code> in the file <code>main.c</code> evolved |
Junio C Hamano | 7e590a1 | 2013-06-02 23:46:52 | [diff] [blame] | 4038 | over time. |
| 4039 | </p> |
| 4040 | </dd> |
| 4041 | <dt class="hdlist1"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4042 | <code>git log -3</code> |
Junio C Hamano | 693e709 | 2012-09-12 22:56:53 | [diff] [blame] | 4043 | </dt> |
| 4044 | <dd> |
| 4045 | <p> |
| 4046 | Limits the number of commits to show to 3. |
| 4047 | </p> |
| 4048 | </dd> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 4049 | </dl></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 4050 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 4051 | </div> |
| 4052 | <div class="sect1"> |
Junio C Hamano | 58f587a | 2013-07-22 19:20:59 | [diff] [blame] | 4053 | <h2 id="_discussion">DISCUSSION</h2> |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4054 | <div class="sectionbody"> |
Junio C Hamano | d7ed404 | 2015-08-03 19:43:00 | [diff] [blame] | 4055 | <div class="paragraph"><p>Git is to some extent character encoding agnostic.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4056 | <div class="ulist"><ul> |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4057 | <li> |
| 4058 | <p> |
Junio C Hamano | 54bf1e2 | 2008-12-20 06:30:11 | [diff] [blame] | 4059 | The contents of the blob objects are uninterpreted sequences |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4060 | of bytes. There is no encoding translation at the core |
| 4061 | level. |
| 4062 | </p> |
| 4063 | </li> |
| 4064 | <li> |
| 4065 | <p> |
Junio C Hamano | d7ed404 | 2015-08-03 19:43:00 | [diff] [blame] | 4066 | Path names are encoded in UTF-8 normalization form C. This |
| 4067 | applies to tree objects, the index file, ref names, as well as |
| 4068 | path names in command line arguments, environment variables |
| 4069 | and config files (<code>.git/config</code> (see <a href="git-config.html">git-config(1)</a>), |
| 4070 | <a href="gitignore.html">gitignore(5)</a>, <a href="gitattributes.html">gitattributes(5)</a> and |
| 4071 | <a href="gitmodules.html">gitmodules(5)</a>). |
| 4072 | </p> |
| 4073 | <div class="paragraph"><p>Note that Git at the core level treats path names simply as |
| 4074 | sequences of non-NUL bytes, there are no path name encoding |
| 4075 | conversions (except on Mac and Windows). Therefore, using |
| 4076 | non-ASCII path names will mostly work even on platforms and file |
| 4077 | systems that use legacy extended ASCII encodings. However, |
| 4078 | repositories created on such systems will not work properly on |
| 4079 | UTF-8-based systems (e.g. Linux, Mac, Windows) and vice versa. |
| 4080 | Additionally, many Git-based tools simply assume path names to |
| 4081 | be UTF-8 and will fail to display other encodings correctly.</p></div> |
| 4082 | </li> |
| 4083 | <li> |
| 4084 | <p> |
| 4085 | Commit log messages are typically encoded in UTF-8, but other |
| 4086 | extended ASCII encodings are also supported. This includes |
| 4087 | ISO-8859-x, CP125x and many others, but <em>not</em> UTF-16/32, |
| 4088 | EBCDIC and CJK multi-byte encodings (GBK, Shift-JIS, Big5, |
| 4089 | EUC-x, CP9xx etc.). |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4090 | </p> |
| 4091 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 4092 | </ul></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4093 | <div class="paragraph"><p>Although we encourage that the commit log messages are encoded |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 4094 | in UTF-8, both the core and Git Porcelain are designed not to |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4095 | force UTF-8 on projects. If all participants of a particular |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 4096 | project find it more convenient to use legacy encodings, Git |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4097 | does not forbid it. However, there are a few things to keep in |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 4098 | mind.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4099 | <div class="olist arabic"><ol class="arabic"> |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4100 | <li> |
| 4101 | <p> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 4102 | <em>git commit</em> and <em>git commit-tree</em> issues |
Junio C Hamano | 14b7648 | 2008-01-05 10:32:26 | [diff] [blame] | 4103 | a warning if the commit log message given to it does not look |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4104 | like a valid UTF-8 string, unless you explicitly say your |
| 4105 | project uses a legacy encoding. The way to say this is to |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4106 | have i18n.commitencoding in <code>.git/config</code> file, like this: |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4107 | </p> |
| 4108 | <div class="listingblock"> |
| 4109 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4110 | <pre><code>[i18n] |
| 4111 | commitencoding = ISO-8859-1</code></pre> |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4112 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4113 | <div class="paragraph"><p>Commit objects created with the above setting record the value |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4114 | of <code>i18n.commitencoding</code> in its <code>encoding</code> header. This is to |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4115 | help other people who look at them later. Lack of this header |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 4116 | implies that the commit log message is encoded in UTF-8.</p></div> |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4117 | </li> |
| 4118 | <li> |
| 4119 | <p> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 4120 | <em>git log</em>, <em>git show</em>, <em>git blame</em> and friends look at the |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4121 | <code>encoding</code> header of a commit object, and try to re-code the |
Junio C Hamano | aa17c7c | 2008-11-03 04:36:58 | [diff] [blame] | 4122 | log message into UTF-8 unless otherwise specified. You can |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4123 | specify the desired output encoding with |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4124 | <code>i18n.logoutputencoding</code> in <code>.git/config</code> file, like this: |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4125 | </p> |
| 4126 | <div class="listingblock"> |
| 4127 | <div class="content"> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4128 | <pre><code>[i18n] |
| 4129 | logoutputencoding = ISO-8859-1</code></pre> |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4130 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4131 | <div class="paragraph"><p>If you do not have this configuration variable, the value of |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4132 | <code>i18n.commitencoding</code> is used instead.</p></div> |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4133 | </li> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 4134 | </ol></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4135 | <div class="paragraph"><p>Note that we deliberately chose not to re-code the commit log |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4136 | message when a commit is made to force UTF-8 at the commit |
| 4137 | object level, because re-coding to UTF-8 is not necessarily a |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 4138 | reversible operation.</p></div> |
Junio C Hamano | 775a0f4 | 2006-12-31 01:19:14 | [diff] [blame] | 4139 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 4140 | </div> |
| 4141 | <div class="sect1"> |
Junio C Hamano | 58f587a | 2013-07-22 19:20:59 | [diff] [blame] | 4142 | <h2 id="_configuration">CONFIGURATION</h2> |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4143 | <div class="sectionbody"> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 4144 | <div class="paragraph"><p>See <a href="git-config.html">git-config(1)</a> for core variables and <a href="git-diff.html">git-diff(1)</a> |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4145 | for settings related to diff generation.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4146 | <div class="dlist"><dl> |
| 4147 | <dt class="hdlist1"> |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4148 | format.pretty |
| 4149 | </dt> |
| 4150 | <dd> |
| 4151 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4152 | Default for the <code>--format</code> option. (See <em>Pretty Formats</em> above.) |
| 4153 | Defaults to <code>medium</code>. |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4154 | </p> |
| 4155 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4156 | <dt class="hdlist1"> |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4157 | i18n.logOutputEncoding |
| 4158 | </dt> |
| 4159 | <dd> |
| 4160 | <p> |
Junio C Hamano | b73af6c | 2013-12-03 22:07:11 | [diff] [blame] | 4161 | Encoding to use when displaying logs. (See <em>Discussion</em> above.) |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4162 | Defaults to the value of <code>i18n.commitEncoding</code> if set, and UTF-8 |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4163 | otherwise. |
| 4164 | </p> |
| 4165 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4166 | <dt class="hdlist1"> |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4167 | log.date |
| 4168 | </dt> |
| 4169 | <dd> |
| 4170 | <p> |
| 4171 | Default format for human-readable dates. (Compare the |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4172 | <code>--date</code> option.) Defaults to "default", which means to write |
| 4173 | dates like <code>Sat May 8 19:35:34 2010 -0500</code>. |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4174 | </p> |
| 4175 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4176 | <dt class="hdlist1"> |
Junio C Hamano | d7ed404 | 2015-08-03 19:43:00 | [diff] [blame] | 4177 | log.follow |
| 4178 | </dt> |
| 4179 | <dd> |
| 4180 | <p> |
Junio C Hamano | b0a1e83 | 2015-10-15 23:08:31 | [diff] [blame] | 4181 | If <code>true</code>, <code>git log</code> will act as if the <code>--follow</code> option was used when |
| 4182 | a single <path> is given. This has the same limitations as <code>--follow</code>, |
| 4183 | i.e. it cannot be used to follow multiple files and does not work well |
| 4184 | on non-linear history. |
Junio C Hamano | d7ed404 | 2015-08-03 19:43:00 | [diff] [blame] | 4185 | </p> |
| 4186 | </dd> |
| 4187 | <dt class="hdlist1"> |
Junio C Hamano | 322c624 | 2015-03-23 21:32:46 | [diff] [blame] | 4188 | log.showRoot |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4189 | </dt> |
| 4190 | <dd> |
| 4191 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4192 | If <code>false</code>, <code>git log</code> and related commands will not treat the |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4193 | initial commit as a big creation event. Any root commits in |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4194 | <code>git log -p</code> output would be shown without a diff attached. |
| 4195 | The default is <code>true</code>. |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4196 | </p> |
| 4197 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4198 | <dt class="hdlist1"> |
Junio C Hamano | 48931e2 | 2016-07-11 20:08:47 | [diff] [blame] | 4199 | log.showSignature |
| 4200 | </dt> |
| 4201 | <dd> |
| 4202 | <p> |
| 4203 | If <code>true</code>, <code>git log</code> and related commands will act as if the |
| 4204 | <code>--show-signature</code> option was passed to them. |
| 4205 | </p> |
| 4206 | </dd> |
| 4207 | <dt class="hdlist1"> |
Junio C Hamano | abad6da | 2013-01-06 09:06:32 | [diff] [blame] | 4208 | mailmap.* |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4209 | </dt> |
| 4210 | <dd> |
| 4211 | <p> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 4212 | See <a href="git-shortlog.html">git-shortlog(1)</a>. |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4213 | </p> |
| 4214 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4215 | <dt class="hdlist1"> |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4216 | notes.displayRef |
| 4217 | </dt> |
| 4218 | <dd> |
| 4219 | <p> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4220 | Which refs, in addition to the default set by <code>core.notesRef</code> |
Junio C Hamano | 042f214 | 2016-06-27 18:05:05 | [diff] [blame] | 4221 | or <code>GIT_NOTES_REF</code>, to read notes from when showing commit |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4222 | messages with the <code>log</code> family of commands. See |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 4223 | <a href="git-notes.html">git-notes(1)</a>. |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4224 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 4225 | <div class="paragraph"><p>May be an unabbreviated ref name or a glob and may be specified |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4226 | multiple times. A warning will be issued for refs that do not exist, |
| 4227 | but a glob that does not match any refs is silently ignored.</p></div> |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4228 | <div class="paragraph"><p>This setting can be disabled by the <code>--no-notes</code> option, |
Junio C Hamano | 042f214 | 2016-06-27 18:05:05 | [diff] [blame] | 4229 | overridden by the <code>GIT_NOTES_DISPLAY_REF</code> environment variable, |
Junio C Hamano | ac12f0e | 2014-09-19 22:32:51 | [diff] [blame] | 4230 | and overridden by the <code>--notes=<ref></code> option.</p></div> |
Junio C Hamano | a574a09 | 2010-06-13 19:57:10 | [diff] [blame] | 4231 | </dd> |
| 4232 | </dl></div> |
| 4233 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 4234 | </div> |
| 4235 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 4236 | <h2 id="_git">GIT</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 4237 | <div class="sectionbody"> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 4238 | <div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 4239 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 4240 | </div> |
Junio C Hamano | 9629d4f | 2012-12-19 00:28:27 | [diff] [blame] | 4241 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 4242 | <div id="footnotes"><hr /></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 4243 | <div id="footer"> |
| 4244 | <div id="footer-text"> |
Junio C Hamano | 919d24f | 2017-05-09 14:51:22 | [diff] [blame] | 4245 | Last updated 2016-07-12 05:08:30 JST |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 4246 | </div> |
| 4247 | </div> |
| 4248 | </body> |
| 4249 | </html> |