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 | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 5 | <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> |
| 6 | <meta name="generator" content="AsciiDoc 8.6.8" /> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 7 | <title>git-merge(1)</title> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 8 | <style type="text/css"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [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 | 9d97115 | 2012-12-19 00:43:11 | [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 | 9d97115 | 2012-12-19 00:43:11 | [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 | 9d97115 | 2012-12-19 00:43:11 | [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 | } |
| 97 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 98 | |
| 99 | #author { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 100 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 101 | font-weight: bold; |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 102 | font-size: 1.1em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 103 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 104 | #email { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 105 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 106 | #revnumber, #revdate, #revremark { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 107 | } |
| 108 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 109 | #footer { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 110 | font-size: small; |
| 111 | border-top: 2px solid silver; |
| 112 | padding-top: 0.5em; |
| 113 | margin-top: 4.0em; |
| 114 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 115 | #footer-text { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 116 | float: left; |
| 117 | padding-bottom: 0.5em; |
| 118 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 119 | #footer-badges { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 120 | float: right; |
| 121 | padding-bottom: 0.5em; |
| 122 | } |
| 123 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 124 | #preamble { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 125 | margin-top: 1.5em; |
| 126 | margin-bottom: 1.5em; |
| 127 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 128 | div.imageblock, div.exampleblock, div.verseblock, |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 129 | div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock, |
| 130 | div.admonitionblock { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 131 | margin-top: 1.0em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 132 | margin-bottom: 1.5em; |
| 133 | } |
| 134 | div.admonitionblock { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 135 | margin-top: 2.0em; |
| 136 | margin-bottom: 2.0em; |
| 137 | margin-right: 10%; |
| 138 | color: #606060; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 139 | } |
| 140 | |
| 141 | div.content { /* Block element content. */ |
| 142 | padding: 0; |
| 143 | } |
| 144 | |
| 145 | /* Block element titles. */ |
| 146 | div.title, caption.title { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 147 | color: #527bbd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 148 | font-weight: bold; |
| 149 | text-align: left; |
| 150 | margin-top: 1.0em; |
| 151 | margin-bottom: 0.5em; |
| 152 | } |
| 153 | div.title + * { |
| 154 | margin-top: 0; |
| 155 | } |
| 156 | |
| 157 | td div.title:first-child { |
| 158 | margin-top: 0.0em; |
| 159 | } |
| 160 | div.content div.title:first-child { |
| 161 | margin-top: 0.0em; |
| 162 | } |
| 163 | div.content + div.title { |
| 164 | margin-top: 0.0em; |
| 165 | } |
| 166 | |
| 167 | div.sidebarblock > div.content { |
| 168 | background: #ffffee; |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 169 | border: 1px solid #dddddd; |
| 170 | border-left: 4px solid #f0f0f0; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 171 | padding: 0.5em; |
| 172 | } |
| 173 | |
| 174 | div.listingblock > div.content { |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 175 | border: 1px solid #dddddd; |
| 176 | border-left: 5px solid #f0f0f0; |
| 177 | background: #f8f8f8; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 178 | padding: 0.5em; |
| 179 | } |
| 180 | |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 181 | div.quoteblock, div.verseblock { |
| 182 | padding-left: 1.0em; |
| 183 | margin-left: 1.0em; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 184 | margin-right: 10%; |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 185 | border-left: 5px solid #f0f0f0; |
| 186 | color: #888; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 187 | } |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 188 | |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 189 | div.quoteblock > div.attribution { |
| 190 | padding-top: 0.5em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 191 | text-align: right; |
| 192 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 193 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 194 | div.verseblock > pre.content { |
| 195 | font-family: inherit; |
| 196 | font-size: inherit; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 197 | } |
| 198 | div.verseblock > div.attribution { |
| 199 | padding-top: 0.75em; |
| 200 | text-align: left; |
| 201 | } |
| 202 | /* DEPRECATED: Pre version 8.2.7 verse style literal block. */ |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 203 | div.verseblock + div.attribution { |
| 204 | text-align: left; |
| 205 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 206 | |
| 207 | div.admonitionblock .icon { |
| 208 | vertical-align: top; |
| 209 | font-size: 1.1em; |
| 210 | font-weight: bold; |
| 211 | text-decoration: underline; |
| 212 | color: #527bbd; |
| 213 | padding-right: 0.5em; |
| 214 | } |
| 215 | div.admonitionblock td.content { |
| 216 | padding-left: 0.5em; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 217 | border-left: 3px solid #dddddd; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 218 | } |
| 219 | |
| 220 | div.exampleblock > div.content { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 221 | border-left: 3px solid #dddddd; |
| 222 | padding-left: 0.5em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 223 | } |
| 224 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 225 | div.imageblock div.content { padding-left: 0; } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 226 | span.image img { border-style: none; } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 227 | a.image:visited { color: white; } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 228 | |
| 229 | dl { |
| 230 | margin-top: 0.8em; |
| 231 | margin-bottom: 0.8em; |
| 232 | } |
| 233 | dt { |
| 234 | margin-top: 0.5em; |
| 235 | margin-bottom: 0; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 236 | font-style: normal; |
| 237 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 238 | } |
| 239 | dd > *:first-child { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 240 | margin-top: 0.1em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 241 | } |
| 242 | |
| 243 | ul, ol { |
| 244 | list-style-position: outside; |
| 245 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 246 | ol.arabic { |
| 247 | list-style-type: decimal; |
| 248 | } |
| 249 | ol.loweralpha { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 250 | list-style-type: lower-alpha; |
| 251 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 252 | ol.upperalpha { |
| 253 | list-style-type: upper-alpha; |
| 254 | } |
| 255 | ol.lowerroman { |
| 256 | list-style-type: lower-roman; |
| 257 | } |
| 258 | ol.upperroman { |
| 259 | list-style-type: upper-roman; |
| 260 | } |
| 261 | |
| 262 | div.compact ul, div.compact ol, |
| 263 | div.compact p, div.compact p, |
| 264 | div.compact div, div.compact div { |
| 265 | margin-top: 0.1em; |
| 266 | margin-bottom: 0.1em; |
| 267 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 268 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 269 | tfoot { |
| 270 | font-weight: bold; |
| 271 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 272 | td > div.verse { |
| 273 | white-space: pre; |
| 274 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 275 | |
| 276 | div.hdlist { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 277 | margin-top: 0.8em; |
| 278 | margin-bottom: 0.8em; |
| 279 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 280 | div.hdlist tr { |
| 281 | padding-bottom: 15px; |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 282 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 283 | dt.hdlist1.strong, td.hdlist1.strong { |
| 284 | font-weight: bold; |
| 285 | } |
| 286 | td.hdlist1 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 287 | vertical-align: top; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 288 | font-style: normal; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 289 | padding-right: 0.8em; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 290 | color: navy; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 291 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 292 | td.hdlist2 { |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 293 | vertical-align: top; |
| 294 | } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 295 | div.hdlist.compact tr { |
| 296 | margin: 0; |
| 297 | padding-bottom: 0; |
| 298 | } |
| 299 | |
| 300 | .comment { |
| 301 | background: yellow; |
| 302 | } |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 303 | |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 304 | .footnote, .footnoteref { |
| 305 | font-size: 0.8em; |
| 306 | } |
| 307 | |
| 308 | span.footnote, span.footnoteref { |
| 309 | vertical-align: super; |
| 310 | } |
| 311 | |
| 312 | #footnotes { |
| 313 | margin: 20px 0 20px 0; |
| 314 | padding: 7px 0 0 0; |
| 315 | } |
| 316 | |
| 317 | #footnotes div.footnote { |
| 318 | margin: 0 0 5px 0; |
| 319 | } |
| 320 | |
| 321 | #footnotes hr { |
| 322 | border: none; |
| 323 | border-top: 1px solid silver; |
| 324 | height: 1px; |
| 325 | text-align: left; |
| 326 | margin-left: 0; |
| 327 | width: 20%; |
| 328 | min-width: 100px; |
| 329 | } |
| 330 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 331 | div.colist td { |
| 332 | padding-right: 0.5em; |
| 333 | padding-bottom: 0.3em; |
| 334 | vertical-align: top; |
| 335 | } |
| 336 | div.colist td img { |
| 337 | margin-top: 0.3em; |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 338 | } |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 339 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 340 | @media print { |
| 341 | #footer-badges { display: none; } |
| 342 | } |
| 343 | |
| 344 | #toc { |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 345 | margin-bottom: 2.5em; |
| 346 | } |
| 347 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 348 | #toctitle { |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 349 | color: #527bbd; |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 350 | font-size: 1.1em; |
| 351 | font-weight: bold; |
| 352 | margin-top: 1.0em; |
| 353 | margin-bottom: 0.1em; |
| 354 | } |
| 355 | |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 356 | div.toclevel0, div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 { |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 357 | margin-top: 0; |
| 358 | margin-bottom: 0; |
| 359 | } |
| 360 | div.toclevel2 { |
| 361 | margin-left: 2em; |
| 362 | font-size: 0.9em; |
| 363 | } |
| 364 | div.toclevel3 { |
| 365 | margin-left: 4em; |
| 366 | font-size: 0.9em; |
| 367 | } |
| 368 | div.toclevel4 { |
| 369 | margin-left: 6em; |
| 370 | font-size: 0.9em; |
| 371 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 372 | |
| 373 | span.aqua { color: aqua; } |
| 374 | span.black { color: black; } |
| 375 | span.blue { color: blue; } |
| 376 | span.fuchsia { color: fuchsia; } |
| 377 | span.gray { color: gray; } |
| 378 | span.green { color: green; } |
| 379 | span.lime { color: lime; } |
| 380 | span.maroon { color: maroon; } |
| 381 | span.navy { color: navy; } |
| 382 | span.olive { color: olive; } |
| 383 | span.purple { color: purple; } |
| 384 | span.red { color: red; } |
| 385 | span.silver { color: silver; } |
| 386 | span.teal { color: teal; } |
| 387 | span.white { color: white; } |
| 388 | span.yellow { color: yellow; } |
| 389 | |
| 390 | span.aqua-background { background: aqua; } |
| 391 | span.black-background { background: black; } |
| 392 | span.blue-background { background: blue; } |
| 393 | span.fuchsia-background { background: fuchsia; } |
| 394 | span.gray-background { background: gray; } |
| 395 | span.green-background { background: green; } |
| 396 | span.lime-background { background: lime; } |
| 397 | span.maroon-background { background: maroon; } |
| 398 | span.navy-background { background: navy; } |
| 399 | span.olive-background { background: olive; } |
| 400 | span.purple-background { background: purple; } |
| 401 | span.red-background { background: red; } |
| 402 | span.silver-background { background: silver; } |
| 403 | span.teal-background { background: teal; } |
| 404 | span.white-background { background: white; } |
| 405 | span.yellow-background { background: yellow; } |
| 406 | |
| 407 | span.big { font-size: 2em; } |
| 408 | span.small { font-size: 0.6em; } |
| 409 | |
| 410 | span.underline { text-decoration: underline; } |
| 411 | span.overline { text-decoration: overline; } |
| 412 | span.line-through { text-decoration: line-through; } |
| 413 | |
| 414 | div.unbreakable { page-break-inside: avoid; } |
| 415 | |
| 416 | |
| 417 | /* |
| 418 | * xhtml11 specific |
| 419 | * |
| 420 | * */ |
| 421 | |
| 422 | div.tableblock { |
| 423 | margin-top: 1.0em; |
| 424 | margin-bottom: 1.5em; |
| 425 | } |
| 426 | div.tableblock > table { |
| 427 | border: 3px solid #527bbd; |
| 428 | } |
| 429 | thead, p.table.header { |
| 430 | font-weight: bold; |
| 431 | color: #527bbd; |
| 432 | } |
| 433 | p.table { |
| 434 | margin-top: 0; |
| 435 | } |
| 436 | /* Because the table frame attribute is overriden by CSS in most browsers. */ |
| 437 | div.tableblock > table[frame="void"] { |
| 438 | border-style: none; |
| 439 | } |
| 440 | div.tableblock > table[frame="hsides"] { |
| 441 | border-left-style: none; |
| 442 | border-right-style: none; |
| 443 | } |
| 444 | div.tableblock > table[frame="vsides"] { |
| 445 | border-top-style: none; |
| 446 | border-bottom-style: none; |
| 447 | } |
| 448 | |
| 449 | |
| 450 | /* |
| 451 | * html5 specific |
| 452 | * |
| 453 | * */ |
| 454 | |
| 455 | table.tableblock { |
| 456 | margin-top: 1.0em; |
| 457 | margin-bottom: 1.5em; |
| 458 | } |
| 459 | thead, p.tableblock.header { |
| 460 | font-weight: bold; |
| 461 | color: #527bbd; |
| 462 | } |
| 463 | p.tableblock { |
| 464 | margin-top: 0; |
| 465 | } |
| 466 | table.tableblock { |
| 467 | border-width: 3px; |
| 468 | border-spacing: 0px; |
| 469 | border-style: solid; |
| 470 | border-color: #527bbd; |
| 471 | border-collapse: collapse; |
| 472 | } |
| 473 | th.tableblock, td.tableblock { |
| 474 | border-width: 1px; |
| 475 | padding: 4px; |
| 476 | border-style: solid; |
| 477 | border-color: #527bbd; |
| 478 | } |
| 479 | |
| 480 | table.tableblock.frame-topbot { |
| 481 | border-left-style: hidden; |
| 482 | border-right-style: hidden; |
| 483 | } |
| 484 | table.tableblock.frame-sides { |
| 485 | border-top-style: hidden; |
| 486 | border-bottom-style: hidden; |
| 487 | } |
| 488 | table.tableblock.frame-none { |
| 489 | border-style: hidden; |
| 490 | } |
| 491 | |
| 492 | th.tableblock.halign-left, td.tableblock.halign-left { |
| 493 | text-align: left; |
| 494 | } |
| 495 | th.tableblock.halign-center, td.tableblock.halign-center { |
| 496 | text-align: center; |
| 497 | } |
| 498 | th.tableblock.halign-right, td.tableblock.halign-right { |
| 499 | text-align: right; |
| 500 | } |
| 501 | |
| 502 | th.tableblock.valign-top, td.tableblock.valign-top { |
| 503 | vertical-align: top; |
| 504 | } |
| 505 | th.tableblock.valign-middle, td.tableblock.valign-middle { |
| 506 | vertical-align: middle; |
| 507 | } |
| 508 | th.tableblock.valign-bottom, td.tableblock.valign-bottom { |
| 509 | vertical-align: bottom; |
| 510 | } |
| 511 | |
| 512 | |
| 513 | /* |
| 514 | * manpage specific |
| 515 | * |
| 516 | * */ |
| 517 | |
| 518 | body.manpage h1 { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 519 | padding-top: 0.5em; |
| 520 | padding-bottom: 0.5em; |
| 521 | border-top: 2px solid silver; |
| 522 | border-bottom: 2px solid silver; |
| 523 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 524 | body.manpage h2 { |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 525 | border-style: none; |
| 526 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 527 | body.manpage div.sectionbody { |
| 528 | margin-left: 3em; |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 529 | } |
| 530 | |
| 531 | @media print { |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 532 | body.manpage div#toc { display: none; } |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 533 | } |
| 534 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 535 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 536 | </style> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 537 | <script type="text/javascript"> |
| 538 | /*<![CDATA[*/ |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 539 | var asciidoc = { // Namespace. |
| 540 | |
| 541 | ///////////////////////////////////////////////////////////////////// |
| 542 | // Table Of Contents generator |
| 543 | ///////////////////////////////////////////////////////////////////// |
| 544 | |
| 545 | /* Author: Mihai Bazon, September 2002 |
| 546 | * http://students.infoiasi.ro/~mishoo |
| 547 | * |
| 548 | * Table Of Content generator |
| 549 | * Version: 0.4 |
| 550 | * |
| 551 | * Feel free to use this script under the terms of the GNU General Public |
| 552 | * License, as long as you do not remove or alter this notice. |
| 553 | */ |
| 554 | |
| 555 | /* modified by Troy D. Hanson, September 2006. License: GPL */ |
| 556 | /* modified by Stuart Rackham, 2006, 2009. License: GPL */ |
| 557 | |
| 558 | // toclevels = 1..4. |
| 559 | toc: function (toclevels) { |
| 560 | |
| 561 | function getText(el) { |
| 562 | var text = ""; |
| 563 | for (var i = el.firstChild; i != null; i = i.nextSibling) { |
| 564 | if (i.nodeType == 3 /* Node.TEXT_NODE */) // IE doesn't speak constants. |
| 565 | text += i.data; |
| 566 | else if (i.firstChild != null) |
| 567 | text += getText(i); |
| 568 | } |
| 569 | return text; |
| 570 | } |
| 571 | |
| 572 | function TocEntry(el, text, toclevel) { |
| 573 | this.element = el; |
| 574 | this.text = text; |
| 575 | this.toclevel = toclevel; |
| 576 | } |
| 577 | |
| 578 | function tocEntries(el, toclevels) { |
| 579 | var result = new Array; |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 580 | var re = new RegExp('[hH]([1-'+(toclevels+1)+'])'); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 581 | // Function that scans the DOM tree for header elements (the DOM2 |
| 582 | // nodeIterator API would be a better technique but not supported by all |
| 583 | // browsers). |
| 584 | var iterate = function (el) { |
| 585 | for (var i = el.firstChild; i != null; i = i.nextSibling) { |
| 586 | if (i.nodeType == 1 /* Node.ELEMENT_NODE */) { |
| 587 | var mo = re.exec(i.tagName); |
| 588 | if (mo && (i.getAttribute("class") || i.getAttribute("className")) != "float") { |
| 589 | result[result.length] = new TocEntry(i, getText(i), mo[1]-1); |
| 590 | } |
| 591 | iterate(i); |
| 592 | } |
| 593 | } |
| 594 | } |
| 595 | iterate(el); |
| 596 | return result; |
| 597 | } |
| 598 | |
| 599 | var toc = document.getElementById("toc"); |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 600 | if (!toc) { |
| 601 | return; |
| 602 | } |
| 603 | |
| 604 | // Delete existing TOC entries in case we're reloading the TOC. |
| 605 | var tocEntriesToRemove = []; |
| 606 | var i; |
| 607 | for (i = 0; i < toc.childNodes.length; i++) { |
| 608 | var entry = toc.childNodes[i]; |
| 609 | if (entry.nodeName.toLowerCase() == 'div' |
| 610 | && entry.getAttribute("class") |
| 611 | && entry.getAttribute("class").match(/^toclevel/)) |
| 612 | tocEntriesToRemove.push(entry); |
| 613 | } |
| 614 | for (i = 0; i < tocEntriesToRemove.length; i++) { |
| 615 | toc.removeChild(tocEntriesToRemove[i]); |
| 616 | } |
| 617 | |
| 618 | // Rebuild TOC entries. |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 619 | var entries = tocEntries(document.getElementById("content"), toclevels); |
| 620 | for (var i = 0; i < entries.length; ++i) { |
| 621 | var entry = entries[i]; |
| 622 | if (entry.element.id == "") |
| 623 | entry.element.id = "_toc_" + i; |
| 624 | var a = document.createElement("a"); |
| 625 | a.href = "#" + entry.element.id; |
| 626 | a.appendChild(document.createTextNode(entry.text)); |
| 627 | var div = document.createElement("div"); |
| 628 | div.appendChild(a); |
| 629 | div.className = "toclevel" + entry.toclevel; |
| 630 | toc.appendChild(div); |
| 631 | } |
| 632 | if (entries.length == 0) |
| 633 | toc.parentNode.removeChild(toc); |
| 634 | }, |
| 635 | |
| 636 | |
| 637 | ///////////////////////////////////////////////////////////////////// |
| 638 | // Footnotes generator |
| 639 | ///////////////////////////////////////////////////////////////////// |
| 640 | |
| 641 | /* Based on footnote generation code from: |
| 642 | * http://www.brandspankingnew.net/archive/2005/07/format_footnote.html |
| 643 | */ |
| 644 | |
| 645 | footnotes: function () { |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 646 | // Delete existing footnote entries in case we're reloading the footnodes. |
| 647 | var i; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 648 | var noteholder = document.getElementById("footnotes"); |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 649 | if (!noteholder) { |
| 650 | return; |
| 651 | } |
| 652 | var entriesToRemove = []; |
| 653 | for (i = 0; i < noteholder.childNodes.length; i++) { |
| 654 | var entry = noteholder.childNodes[i]; |
| 655 | if (entry.nodeName.toLowerCase() == 'div' && entry.getAttribute("class") == "footnote") |
| 656 | entriesToRemove.push(entry); |
| 657 | } |
| 658 | for (i = 0; i < entriesToRemove.length; i++) { |
| 659 | noteholder.removeChild(entriesToRemove[i]); |
| 660 | } |
| 661 | |
| 662 | // Rebuild footnote entries. |
| 663 | var cont = document.getElementById("content"); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 664 | var spans = cont.getElementsByTagName("span"); |
| 665 | var refs = {}; |
| 666 | var n = 0; |
| 667 | for (i=0; i<spans.length; i++) { |
| 668 | if (spans[i].className == "footnote") { |
| 669 | n++; |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 670 | var note = spans[i].getAttribute("data-note"); |
| 671 | if (!note) { |
| 672 | // Use [\s\S] in place of . so multi-line matches work. |
| 673 | // Because JavaScript has no s (dotall) regex flag. |
| 674 | note = spans[i].innerHTML.match(/\s*\[([\s\S]*)]\s*/)[1]; |
| 675 | spans[i].innerHTML = |
| 676 | "[<a id='_footnoteref_" + n + "' href='#_footnote_" + n + |
| 677 | "' title='View footnote' class='footnote'>" + n + "</a>]"; |
| 678 | spans[i].setAttribute("data-note", note); |
| 679 | } |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 680 | noteholder.innerHTML += |
| 681 | "<div class='footnote' id='_footnote_" + n + "'>" + |
| 682 | "<a href='#_footnoteref_" + n + "' title='Return to text'>" + |
| 683 | n + "</a>. " + note + "</div>"; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 684 | var id =spans[i].getAttribute("id"); |
| 685 | if (id != null) refs["#"+id] = n; |
| 686 | } |
| 687 | } |
| 688 | if (n == 0) |
| 689 | noteholder.parentNode.removeChild(noteholder); |
| 690 | else { |
| 691 | // Process footnoterefs. |
| 692 | for (i=0; i<spans.length; i++) { |
| 693 | if (spans[i].className == "footnoteref") { |
| 694 | var href = spans[i].getElementsByTagName("a")[0].getAttribute("href"); |
| 695 | href = href.match(/#.*/)[0]; // Because IE return full URL. |
| 696 | n = refs[href]; |
| 697 | spans[i].innerHTML = |
| 698 | "[<a href='#_footnote_" + n + |
| 699 | "' title='View footnote' class='footnote'>" + n + "</a>]"; |
| 700 | } |
| 701 | } |
| 702 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 703 | }, |
| 704 | |
| 705 | install: function(toclevels) { |
| 706 | var timerId; |
| 707 | |
| 708 | function reinstall() { |
| 709 | asciidoc.footnotes(); |
| 710 | if (toclevels) { |
| 711 | asciidoc.toc(toclevels); |
| 712 | } |
| 713 | } |
| 714 | |
| 715 | function reinstallAndRemoveTimer() { |
| 716 | clearInterval(timerId); |
| 717 | reinstall(); |
| 718 | } |
| 719 | |
| 720 | timerId = setInterval(reinstall, 500); |
| 721 | if (document.addEventListener) |
| 722 | document.addEventListener("DOMContentLoaded", reinstallAndRemoveTimer, false); |
| 723 | else |
| 724 | window.onload = reinstallAndRemoveTimer; |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 725 | } |
| 726 | |
| 727 | } |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 728 | asciidoc.install(); |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 729 | /*]]>*/ |
| 730 | </script> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 731 | </head> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 732 | <body class="manpage"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 733 | <div id="header"> |
| 734 | <h1> |
| 735 | git-merge(1) Manual Page |
| 736 | </h1> |
| 737 | <h2>NAME</h2> |
| 738 | <div class="sectionbody"> |
| 739 | <p>git-merge - |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 740 | Join two or more development histories together |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 741 | </p> |
| 742 | </div> |
| 743 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 744 | <div id="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 745 | <div class="sect1"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 746 | <h2 id="_synopsis">SYNOPSIS</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 747 | <div class="sectionbody"> |
Junio C Hamano | ee6d961 | 2006-11-27 20:03:22 | [diff] [blame] | 748 | <div class="verseblock"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 749 | <pre class="content"><em>git merge</em> [-n] [--stat] [--no-commit] [--squash] [--[no-]edit] |
Junio C Hamano | b04bb3f | 2010-04-14 14:07:36 | [diff] [blame] | 750 | [-s <strategy>] [-X <strategy-option>] |
Junio C Hamano | a03ac86 | 2011-04-02 04:32:29 | [diff] [blame] | 751 | [--[no-]rerere-autoupdate] [-m <msg>] [<commit>…] |
Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 752 | <em>git merge</em> <msg> HEAD <commit>… |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 753 | <em>git merge</em> --abort</pre> |
| 754 | <div class="attribution"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 755 | </div></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 756 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 757 | </div> |
| 758 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 759 | <h2 id="_description">DESCRIPTION</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 760 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 761 | <div class="paragraph"><p>Incorporates changes from the named commits (since the time their |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 762 | histories diverged from the current branch) into the current |
| 763 | branch. This command is used by <em>git pull</em> to incorporate changes |
| 764 | from another repository and can be used by hand to merge changes |
| 765 | from one branch into another.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 766 | <div class="paragraph"><p>Assume the following history exists and the current branch is |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 767 | "<code>master</code>":</p></div> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 768 | <div class="listingblock"> |
| 769 | <div class="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 770 | <pre><code> A---B---C topic |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 771 | / |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 772 | D---E---F---G master</code></pre> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 773 | </div></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 774 | <div class="paragraph"><p>Then "<code>git merge topic</code>" will replay the changes made on the |
| 775 | <code>topic</code> branch since it diverged from <code>master</code> (i.e., <code>E</code>) until |
| 776 | its current commit (<code>C</code>) on top of <code>master</code>, and record the result |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 777 | in a new commit along with the names of the two parent commits and |
| 778 | a log message from the user describing the changes.</p></div> |
| 779 | <div class="listingblock"> |
| 780 | <div class="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 781 | <pre><code> A---B---C topic |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 782 | / \ |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 783 | D---E---F---G---H master</code></pre> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 784 | </div></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 785 | <div class="paragraph"><p>The second syntax (<msg> <code>HEAD</code> <commit>…) is supported for |
Junio C Hamano | 1974bf2 | 2007-10-31 05:57:20 | [diff] [blame] | 786 | historical reasons. Do not use it from the command line or in |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 787 | new scripts. It is the same as <code>git merge -m <msg> <commit>...</code>.</p></div> |
| 788 | <div class="paragraph"><p>The third syntax ("<code>git merge --abort</code>") can only be run after the |
Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 789 | merge has resulted in conflicts. <em>git merge --abort</em> will abort the |
| 790 | merge process and try to reconstruct the pre-merge state. However, |
| 791 | if there were uncommitted changes when the merge started (and |
| 792 | especially if those changes were further modified after the merge |
| 793 | was started), <em>git merge --abort</em> will in some cases be unable to |
| 794 | reconstruct the original (pre-merge) changes. Therefore:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 795 | <div class="paragraph"><p><strong>Warning</strong>: Running <em>git merge</em> with uncommitted changes is |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 796 | discouraged: while possible, it leaves you in a state that is hard to |
| 797 | back out of in the case of a conflict.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 798 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 799 | </div> |
| 800 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 801 | <h2 id="_options">OPTIONS</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 802 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 803 | <div class="dlist"><dl> |
| 804 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 805 | --commit |
| 806 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 807 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 808 | --no-commit |
| 809 | </dt> |
| 810 | <dd> |
| 811 | <p> |
| 812 | Perform the merge and commit the result. This option can |
| 813 | be used to override --no-commit. |
| 814 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 815 | <div class="paragraph"><p>With --no-commit perform the merge but pretend the merge |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 816 | failed and do not autocommit, to give the user a chance to |
| 817 | inspect and further tweak the merge result before committing.</p></div> |
| 818 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 819 | <dt class="hdlist1"> |
Junio C Hamano | 11821ed | 2011-10-19 18:42:09 | [diff] [blame] | 820 | --edit |
| 821 | </dt> |
| 822 | <dt class="hdlist1"> |
Junio C Hamano | 795a5a3 | 2012-02-02 01:36:37 | [diff] [blame] | 823 | --no-edit |
Junio C Hamano | 11821ed | 2011-10-19 18:42:09 | [diff] [blame] | 824 | </dt> |
| 825 | <dd> |
Junio C Hamano | 92887a3 | 2011-12-07 00:26:29 | [diff] [blame] | 826 | <p> |
Junio C Hamano | 795a5a3 | 2012-02-02 01:36:37 | [diff] [blame] | 827 | Invoke an editor before committing successful mechanical merge to |
| 828 | further edit the auto-generated merge message, so that the user |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 829 | can explain and justify the merge. The <code>--no-edit</code> option can be |
Junio C Hamano | 795a5a3 | 2012-02-02 01:36:37 | [diff] [blame] | 830 | used to accept the auto-generated message (this is generally |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 831 | discouraged). The <code>--edit</code> option is still useful if you are |
| 832 | giving a draft message with the <code>-m</code> option from the command line |
Junio C Hamano | 795a5a3 | 2012-02-02 01:36:37 | [diff] [blame] | 833 | and want to edit it in the editor. |
Junio C Hamano | 92887a3 | 2011-12-07 00:26:29 | [diff] [blame] | 834 | </p> |
Junio C Hamano | 795a5a3 | 2012-02-02 01:36:37 | [diff] [blame] | 835 | <div class="paragraph"><p>Older scripts may depend on the historical behaviour of not allowing the |
| 836 | user to edit the merge log message. They will see an editor opened when |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 837 | they run <code>git merge</code>. To make it easier to adjust such scripts to the |
| 838 | updated behaviour, the environment variable <code>GIT_MERGE_AUTOEDIT</code> can be |
| 839 | set to <code>no</code> at the beginning of them.</p></div> |
Junio C Hamano | 11821ed | 2011-10-19 18:42:09 | [diff] [blame] | 840 | </dd> |
| 841 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 842 | --ff |
| 843 | </dt> |
Junio C Hamano | f54f08e | 2012-02-27 07:49:19 | [diff] [blame] | 844 | <dd> |
| 845 | <p> |
| 846 | When the merge resolves as a fast-forward, only update the branch |
| 847 | pointer, without creating a merge commit. This is the default |
| 848 | behavior. |
| 849 | </p> |
| 850 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 851 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 852 | --no-ff |
| 853 | </dt> |
| 854 | <dd> |
| 855 | <p> |
Junio C Hamano | f54f08e | 2012-02-27 07:49:19 | [diff] [blame] | 856 | Create a merge commit even when the merge resolves as a |
| 857 | fast-forward. |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 858 | </p> |
Junio C Hamano | f54f08e | 2012-02-27 07:49:19 | [diff] [blame] | 859 | </dd> |
| 860 | <dt class="hdlist1"> |
| 861 | --ff-only |
| 862 | </dt> |
| 863 | <dd> |
| 864 | <p> |
| 865 | Refuse to merge and exit with a non-zero status unless the |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 866 | current <code>HEAD</code> is already up-to-date or the merge can be |
Junio C Hamano | f54f08e | 2012-02-27 07:49:19 | [diff] [blame] | 867 | resolved as a fast-forward. |
| 868 | </p> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 869 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 870 | <dt class="hdlist1"> |
Junio C Hamano | 3b4609d | 2010-09-30 00:04:34 | [diff] [blame] | 871 | --log[=<n>] |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 872 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 873 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 874 | --no-log |
| 875 | </dt> |
| 876 | <dd> |
| 877 | <p> |
| 878 | In addition to branch names, populate the log message with |
Junio C Hamano | 3b4609d | 2010-09-30 00:04:34 | [diff] [blame] | 879 | one-line descriptions from at most <n> actual commits that are being |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 880 | merged. See also <a href="git-fmt-merge-msg.html">git-fmt-merge-msg(1)</a>. |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 881 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 882 | <div class="paragraph"><p>With --no-log do not list one-line descriptions from the |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 883 | actual commits being merged.</p></div> |
| 884 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 885 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 886 | --stat |
| 887 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 888 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 889 | -n |
| 890 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 891 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 892 | --no-stat |
| 893 | </dt> |
| 894 | <dd> |
| 895 | <p> |
| 896 | Show a diffstat at the end of the merge. The diffstat is also |
| 897 | controlled by the configuration option merge.stat. |
| 898 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 899 | <div class="paragraph"><p>With -n or --no-stat do not show a diffstat at the end of the |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 900 | merge.</p></div> |
| 901 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 902 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 903 | --squash |
| 904 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 905 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 906 | --no-squash |
| 907 | </dt> |
| 908 | <dd> |
| 909 | <p> |
| 910 | Produce the working tree and index state as if a real |
| 911 | merge happened (except for the merge information), |
| 912 | but do not actually make a commit or |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 913 | move the <code>HEAD</code>, nor record <code>$GIT_DIR/MERGE_HEAD</code> to |
| 914 | cause the next <code>git commit</code> command to create a merge |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 915 | commit. This allows you to create a single commit on |
| 916 | top of the current branch whose effect is the same as |
| 917 | merging another branch (or more in case of an octopus). |
| 918 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 919 | <div class="paragraph"><p>With --no-squash perform the merge and commit the result. This |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 920 | option can be used to override --squash.</p></div> |
| 921 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 922 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 923 | -s <strategy> |
| 924 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 925 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 926 | --strategy=<strategy> |
| 927 | </dt> |
| 928 | <dd> |
| 929 | <p> |
| 930 | Use the given merge strategy; can be supplied more than |
| 931 | once to specify them in the order they should be tried. |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 932 | If there is no <code>-s</code> option, a built-in list of strategies |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 933 | is used instead (<em>git merge-recursive</em> when merging a single |
| 934 | head, <em>git merge-octopus</em> otherwise). |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 935 | </p> |
| 936 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 937 | <dt class="hdlist1"> |
Junio C Hamano | b04bb3f | 2010-04-14 14:07:36 | [diff] [blame] | 938 | -X <option> |
| 939 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 940 | <dt class="hdlist1"> |
Junio C Hamano | b04bb3f | 2010-04-14 14:07:36 | [diff] [blame] | 941 | --strategy-option=<option> |
| 942 | </dt> |
| 943 | <dd> |
| 944 | <p> |
| 945 | Pass merge strategy specific option through to the merge |
| 946 | strategy. |
| 947 | </p> |
| 948 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 949 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 950 | --summary |
| 951 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 952 | <dt class="hdlist1"> |
Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 953 | --no-summary |
| 954 | </dt> |
| 955 | <dd> |
| 956 | <p> |
| 957 | Synonyms to --stat and --no-stat; these are deprecated and will be |
| 958 | removed in the future. |
| 959 | </p> |
| 960 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 961 | <dt class="hdlist1"> |
Junio C Hamano | 610d176 | 2008-11-28 06:27:13 | [diff] [blame] | 962 | -q |
| 963 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 964 | <dt class="hdlist1"> |
Junio C Hamano | 610d176 | 2008-11-28 06:27:13 | [diff] [blame] | 965 | --quiet |
| 966 | </dt> |
| 967 | <dd> |
| 968 | <p> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 969 | Operate quietly. Implies --no-progress. |
Junio C Hamano | 610d176 | 2008-11-28 06:27:13 | [diff] [blame] | 970 | </p> |
| 971 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 972 | <dt class="hdlist1"> |
Junio C Hamano | 610d176 | 2008-11-28 06:27:13 | [diff] [blame] | 973 | -v |
| 974 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 975 | <dt class="hdlist1"> |
Junio C Hamano | 610d176 | 2008-11-28 06:27:13 | [diff] [blame] | 976 | --verbose |
| 977 | </dt> |
| 978 | <dd> |
| 979 | <p> |
| 980 | Be verbose. |
| 981 | </p> |
| 982 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 983 | <dt class="hdlist1"> |
Junio C Hamano | d2c978f | 2011-03-20 19:42:22 | [diff] [blame] | 984 | --progress |
| 985 | </dt> |
| 986 | <dt class="hdlist1"> |
| 987 | --no-progress |
| 988 | </dt> |
| 989 | <dd> |
| 990 | <p> |
| 991 | Turn progress on/off explicitly. If neither is specified, |
| 992 | progress is shown if standard error is connected to a terminal. |
| 993 | Note that not all merge strategies may support progress |
| 994 | reporting. |
| 995 | </p> |
| 996 | </dd> |
| 997 | <dt class="hdlist1"> |
Junio C Hamano | 1974bf2 | 2007-10-31 05:57:20 | [diff] [blame] | 998 | -m <msg> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 999 | </dt> |
| 1000 | <dd> |
| 1001 | <p> |
Junio C Hamano | c0e55e7 | 2009-10-10 00:56:29 | [diff] [blame] | 1002 | Set the commit message to be used for the merge commit (in |
Junio C Hamano | f5de4cf | 2010-06-19 00:33:17 | [diff] [blame] | 1003 | case one is created). |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1004 | </p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1005 | <div class="paragraph"><p>If <code>--log</code> is specified, a shortlog of the commits being merged |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1006 | will be appended to the specified message.</p></div> |
| 1007 | <div class="paragraph"><p>The <em>git fmt-merge-msg</em> command can be |
| 1008 | used to give a good default for automated <em>git merge</em> |
| 1009 | invocations.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1010 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1011 | <dt class="hdlist1"> |
Junio C Hamano | 19107ef | 2010-01-19 06:20:59 | [diff] [blame] | 1012 | --rerere-autoupdate |
| 1013 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1014 | <dt class="hdlist1"> |
Junio C Hamano | 19107ef | 2010-01-19 06:20:59 | [diff] [blame] | 1015 | --no-rerere-autoupdate |
| 1016 | </dt> |
| 1017 | <dd> |
| 1018 | <p> |
| 1019 | Allow the rerere mechanism to update the index with the |
| 1020 | result of auto-conflict resolution if possible. |
| 1021 | </p> |
| 1022 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1023 | <dt class="hdlist1"> |
Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 1024 | --abort |
| 1025 | </dt> |
| 1026 | <dd> |
| 1027 | <p> |
| 1028 | Abort the current conflict resolution process, and |
| 1029 | try to reconstruct the pre-merge state. |
| 1030 | </p> |
| 1031 | <div class="paragraph"><p>If there were uncommitted worktree changes present when the merge |
| 1032 | started, <em>git merge --abort</em> will in some cases be unable to |
| 1033 | reconstruct these changes. It is therefore recommended to always |
| 1034 | commit or stash your changes before running <em>git merge</em>.</p></div> |
| 1035 | <div class="paragraph"><p><em>git merge --abort</em> is equivalent to <em>git reset --merge</em> when |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1036 | <code>MERGE_HEAD</code> is present.</p></div> |
Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 1037 | </dd> |
| 1038 | <dt class="hdlist1"> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1039 | <commit>… |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1040 | </dt> |
| 1041 | <dd> |
| 1042 | <p> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1043 | Commits, usually other branch heads, to merge into our branch. |
Junio C Hamano | a03ac86 | 2011-04-02 04:32:29 | [diff] [blame] | 1044 | Specifying more than one commit will create a merge with |
| 1045 | more than two parents (affectionately called an Octopus merge). |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1046 | </p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1047 | <div class="paragraph"><p>If no commit is given from the command line, and if <code>merge.defaultToUpstream</code> |
Junio C Hamano | a129545 | 2012-11-13 22:32:04 | [diff] [blame] | 1048 | configuration variable is set, merge the remote-tracking branches |
Junio C Hamano | a03ac86 | 2011-04-02 04:32:29 | [diff] [blame] | 1049 | that the current branch is configured to use as its upstream. |
| 1050 | See also the configuration section of this manual page.</p></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1051 | </dd> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1052 | </dl></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1053 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1054 | </div> |
| 1055 | <div class="sect1"> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1056 | <h2 id="_pre_merge_checks">PRE-MERGE CHECKS</h2> |
| 1057 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1058 | <div class="paragraph"><p>Before applying outside changes, you should get your own work in |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1059 | good shape and committed locally, so it will not be clobbered if |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1060 | there are conflicts. See also <a href="git-stash.html">git-stash(1)</a>. |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1061 | <em>git pull</em> and <em>git merge</em> will stop without doing anything when |
| 1062 | local uncommitted changes overlap with files that <em>git pull</em>/<em>git |
| 1063 | merge</em> may need to update.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1064 | <div class="paragraph"><p>To avoid recording unrelated changes in the merge commit, |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1065 | <em>git pull</em> and <em>git merge</em> will also abort if there are any changes |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1066 | registered in the index relative to the <code>HEAD</code> commit. (One |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1067 | exception is when the changed index entries are in the state that |
| 1068 | would result from the merge already.)</p></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1069 | <div class="paragraph"><p>If all named commits are already ancestors of <code>HEAD</code>, <em>git merge</em> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1070 | will exit early with the message "Already up-to-date."</p></div> |
| 1071 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1072 | </div> |
| 1073 | <div class="sect1"> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1074 | <h2 id="_fast_forward_merge">FAST-FORWARD MERGE</h2> |
| 1075 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1076 | <div class="paragraph"><p>Often the current branch head is an ancestor of the named commit. |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1077 | This is the most common case especially when invoked from <em>git |
| 1078 | pull</em>: you are tracking an upstream repository, you have committed |
| 1079 | no local changes, and now you want to update to a newer upstream |
| 1080 | revision. In this case, a new commit is not needed to store the |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1081 | combined history; instead, the <code>HEAD</code> (along with the index) is |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1082 | updated to point at the named commit, without creating an extra |
| 1083 | merge commit.</p></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1084 | <div class="paragraph"><p>This behavior can be suppressed with the <code>--no-ff</code> option.</p></div> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1085 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1086 | </div> |
| 1087 | <div class="sect1"> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1088 | <h2 id="_true_merge">TRUE MERGE</h2> |
| 1089 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1090 | <div class="paragraph"><p>Except in a fast-forward merge (see above), the branches to be |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1091 | merged must be tied together by a merge commit that has both of them |
| 1092 | as its parents.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1093 | <div class="paragraph"><p>A merged version reconciling the changes from all branches to be |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1094 | merged is committed, and your <code>HEAD</code>, index, and working tree are |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1095 | updated to it. It is possible to have modifications in the working |
| 1096 | tree as long as they do not overlap; the update will preserve them.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1097 | <div class="paragraph"><p>When it is not obvious how to reconcile the changes, the following |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1098 | happens:</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1099 | <div class="olist arabic"><ol class="arabic"> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1100 | <li> |
| 1101 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1102 | The <code>HEAD</code> pointer stays the same. |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1103 | </p> |
| 1104 | </li> |
| 1105 | <li> |
| 1106 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1107 | The <code>MERGE_HEAD</code> ref is set to point to the other branch head. |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1108 | </p> |
| 1109 | </li> |
| 1110 | <li> |
| 1111 | <p> |
| 1112 | Paths that merged cleanly are updated both in the index file and |
| 1113 | in your working tree. |
| 1114 | </p> |
| 1115 | </li> |
| 1116 | <li> |
| 1117 | <p> |
| 1118 | For conflicting paths, the index file records up to three |
| 1119 | versions: stage 1 stores the version from the common ancestor, |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1120 | stage 2 from <code>HEAD</code>, and stage 3 from <code>MERGE_HEAD</code> (you |
| 1121 | can inspect the stages with <code>git ls-files -u</code>). The working |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1122 | tree files contain the result of the "merge" program; i.e. 3-way |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1123 | merge results with familiar conflict markers <code><<<</code> <code>===</code> <code>>>></code>. |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1124 | </p> |
| 1125 | </li> |
| 1126 | <li> |
| 1127 | <p> |
| 1128 | No other changes are made. In particular, the local |
| 1129 | modifications you had before you started merge will stay the |
| 1130 | same and the index entries for them stay as they were, |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1131 | i.e. matching <code>HEAD</code>. |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1132 | </p> |
| 1133 | </li> |
| 1134 | </ol></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1135 | <div class="paragraph"><p>If you tried a merge which resulted in complex conflicts and |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1136 | want to start over, you can recover with <code>git merge --abort</code>.</p></div> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1137 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1138 | </div> |
| 1139 | <div class="sect1"> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1140 | <h2 id="_how_conflicts_are_presented">HOW CONFLICTS ARE PRESENTED</h2> |
| 1141 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1142 | <div class="paragraph"><p>During a merge, the working tree files are updated to reflect the result |
| 1143 | of the merge. Among the changes made to the common ancestor’s version, |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1144 | non-overlapping ones (that is, you changed an area of the file while the |
| 1145 | other side left that area intact, or vice versa) are incorporated in the |
| 1146 | final result verbatim. When both sides made changes to the same area, |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1147 | however, Git cannot randomly pick one side over the other, and asks you to |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1148 | resolve it by leaving what both sides did to that area.</p></div> |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1149 | <div class="paragraph"><p>By default, Git uses the same style as the one used by the "merge" program |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1150 | from the RCS suite to present such a conflicted hunk, like this:</p></div> |
| 1151 | <div class="listingblock"> |
| 1152 | <div class="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1153 | <pre><code>Here are lines that are either unchanged from the common |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1154 | ancestor, or cleanly resolved because only one side changed. |
| 1155 | <<<<<<< yours:sample.txt |
| 1156 | Conflict resolution is hard; |
| 1157 | let's go shopping. |
| 1158 | ======= |
| 1159 | Git makes conflict resolution easy. |
| 1160 | >>>>>>> theirs:sample.txt |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1161 | And here is another line that is cleanly resolved or unmodified.</code></pre> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1162 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1163 | <div class="paragraph"><p>The area where a pair of conflicting changes happened is marked with markers |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1164 | <code><<<<<<<</code>, <code>=======</code>, and <code>>>>>>>></code>. The part before the <code>=======</code> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1165 | is typically your side, and the part afterwards is typically their side.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1166 | <div class="paragraph"><p>The default format does not show what the original said in the conflicting |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1167 | area. You cannot tell how many lines are deleted and replaced with |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1168 | Barbie’s remark on your side. The only thing you can tell is that your |
| 1169 | side wants to say it is hard and you’d prefer to go shopping, while the |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1170 | other side wants to claim it is easy.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1171 | <div class="paragraph"><p>An alternative style can be used by setting the "merge.conflictstyle" |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1172 | configuration variable to "diff3". In "diff3" style, the above conflict |
| 1173 | may look like this:</p></div> |
| 1174 | <div class="listingblock"> |
| 1175 | <div class="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1176 | <pre><code>Here are lines that are either unchanged from the common |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1177 | ancestor, or cleanly resolved because only one side changed. |
| 1178 | <<<<<<< yours:sample.txt |
| 1179 | Conflict resolution is hard; |
| 1180 | let's go shopping. |
| 1181 | ||||||| |
| 1182 | Conflict resolution is hard. |
| 1183 | ======= |
| 1184 | Git makes conflict resolution easy. |
| 1185 | >>>>>>> theirs:sample.txt |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1186 | And here is another line that is cleanly resolved or unmodified.</code></pre> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1187 | </div></div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1188 | <div class="paragraph"><p>In addition to the <code><<<<<<<</code>, <code>=======</code>, and <code>>>>>>>></code> markers, it uses |
| 1189 | another <code>|||||||</code> marker that is followed by the original text. You can |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1190 | tell that the original just stated a fact, and your side simply gave in to |
| 1191 | that statement and gave up, while the other side tried to have a more |
| 1192 | positive attitude. You can sometimes come up with a better resolution by |
| 1193 | viewing the original.</p></div> |
| 1194 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1195 | </div> |
| 1196 | <div class="sect1"> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1197 | <h2 id="_how_to_resolve_conflicts">HOW TO RESOLVE CONFLICTS</h2> |
| 1198 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1199 | <div class="paragraph"><p>After seeing a conflict, you can do two things:</p></div> |
| 1200 | <div class="ulist"><ul> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1201 | <li> |
| 1202 | <p> |
| 1203 | Decide not to merge. The only clean-ups you need are to reset |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1204 | the index file to the <code>HEAD</code> commit to reverse 2. and to clean |
| 1205 | up working tree changes made by 2. and 3.; <code>git merge --abort</code> |
Junio C Hamano | 788eeba | 2010-12-08 22:50:43 | [diff] [blame] | 1206 | can be used for this. |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1207 | </p> |
| 1208 | </li> |
| 1209 | <li> |
| 1210 | <p> |
| 1211 | Resolve the conflicts. Git will mark the conflicts in |
| 1212 | the working tree. Edit the files into shape and |
| 1213 | <em>git add</em> them to the index. Use <em>git commit</em> to seal the deal. |
| 1214 | </p> |
| 1215 | </li> |
| 1216 | </ul></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1217 | <div class="paragraph"><p>You can work through the conflict with a number of tools:</p></div> |
| 1218 | <div class="ulist"><ul> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1219 | <li> |
| 1220 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1221 | Use a mergetool. <code>git mergetool</code> to launch a graphical |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1222 | mergetool which will work you through the merge. |
| 1223 | </p> |
| 1224 | </li> |
| 1225 | <li> |
| 1226 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1227 | Look at the diffs. <code>git diff</code> will show a three-way diff, |
| 1228 | highlighting changes from both the <code>HEAD</code> and <code>MERGE_HEAD</code> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1229 | versions. |
| 1230 | </p> |
| 1231 | </li> |
| 1232 | <li> |
| 1233 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1234 | Look at the diffs from each branch. <code>git log --merge -p <path></code> |
| 1235 | will show diffs first for the <code>HEAD</code> version and then the |
| 1236 | <code>MERGE_HEAD</code> version. |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1237 | </p> |
| 1238 | </li> |
| 1239 | <li> |
| 1240 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1241 | Look at the originals. <code>git show :1:filename</code> shows the |
| 1242 | common ancestor, <code>git show :2:filename</code> shows the <code>HEAD</code> |
| 1243 | version, and <code>git show :3:filename</code> shows the <code>MERGE_HEAD</code> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1244 | version. |
| 1245 | </p> |
| 1246 | </li> |
| 1247 | </ul></div> |
| 1248 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1249 | </div> |
| 1250 | <div class="sect1"> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1251 | <h2 id="_examples">EXAMPLES</h2> |
| 1252 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1253 | <div class="ulist"><ul> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1254 | <li> |
| 1255 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1256 | Merge branches <code>fixes</code> and <code>enhancements</code> on top of |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1257 | the current branch, making an octopus merge: |
| 1258 | </p> |
| 1259 | <div class="listingblock"> |
| 1260 | <div class="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1261 | <pre><code>$ git merge fixes enhancements</code></pre> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1262 | </div></div> |
| 1263 | </li> |
| 1264 | <li> |
| 1265 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1266 | Merge branch <code>obsolete</code> into the current branch, using <code>ours</code> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1267 | merge strategy: |
| 1268 | </p> |
| 1269 | <div class="listingblock"> |
| 1270 | <div class="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1271 | <pre><code>$ git merge -s ours obsolete</code></pre> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1272 | </div></div> |
| 1273 | </li> |
| 1274 | <li> |
| 1275 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1276 | Merge branch <code>maint</code> into the current branch, but do not make |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1277 | a new commit automatically: |
| 1278 | </p> |
| 1279 | <div class="listingblock"> |
| 1280 | <div class="content"> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1281 | <pre><code>$ git merge --no-commit maint</code></pre> |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1282 | </div></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1283 | <div class="paragraph"><p>This can be used when you want to include further changes to the |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1284 | merge, or want to write your own merge commit message.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1285 | <div class="paragraph"><p>You should refrain from abusing this option to sneak substantial |
Junio C Hamano | d0d892c | 2010-01-24 20:06:29 | [diff] [blame] | 1286 | changes into a merge commit. Small fixups like bumping |
| 1287 | release/version name would be acceptable.</p></div> |
| 1288 | </li> |
| 1289 | </ul></div> |
| 1290 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1291 | </div> |
| 1292 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1293 | <h2 id="_merge_strategies">MERGE STRATEGIES</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1294 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1295 | <div class="paragraph"><p>The merge mechanism (<em>git-merge</em> and <em>git-pull</em> commands) allows the |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1296 | backend <em>merge strategies</em> to be chosen with <code>-s</code> option. Some strategies |
| 1297 | can also take their own options, which can be passed by giving <code>-X<option></code> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1298 | arguments to <em>git-merge</em> and/or <em>git-pull</em>.</p></div> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1299 | <div class="dlist"><dl> |
| 1300 | <dt class="hdlist1"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1301 | resolve |
| 1302 | </dt> |
| 1303 | <dd> |
| 1304 | <p> |
| 1305 | This can only resolve two heads (i.e. the current branch |
Junio C Hamano | 1de7572 | 2009-03-26 08:39:38 | [diff] [blame] | 1306 | and another branch you pulled from) using a 3-way merge |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1307 | algorithm. It tries to carefully detect criss-cross |
| 1308 | merge ambiguities and is considered generally safe and |
| 1309 | fast. |
| 1310 | </p> |
| 1311 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1312 | <dt class="hdlist1"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1313 | recursive |
| 1314 | </dt> |
| 1315 | <dd> |
| 1316 | <p> |
Junio C Hamano | 1de7572 | 2009-03-26 08:39:38 | [diff] [blame] | 1317 | This can only resolve two heads using a 3-way merge |
| 1318 | algorithm. When there is more than one common |
| 1319 | ancestor that can be used for 3-way merge, it creates a |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1320 | merged tree of the common ancestors and uses that as |
| 1321 | the reference tree for the 3-way merge. This has been |
| 1322 | reported to result in fewer merge conflicts without |
| 1323 | causing mis-merges by tests done on actual merge commits |
| 1324 | taken from Linux 2.6 kernel development history. |
| 1325 | Additionally this can detect and handle merges involving |
| 1326 | renames. This is the default merge strategy when |
| 1327 | pulling or merging one branch. |
| 1328 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1329 | <div class="paragraph"><p>The <em>recursive</em> strategy can take the following options:</p></div> |
| 1330 | <div class="dlist"><dl> |
| 1331 | <dt class="hdlist1"> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1332 | ours |
| 1333 | </dt> |
| 1334 | <dd> |
| 1335 | <p> |
| 1336 | This option forces conflicting hunks to be auto-resolved cleanly by |
| 1337 | favoring <em>our</em> version. Changes from the other tree that do not |
| 1338 | conflict with our side are reflected to the merge result. |
Junio C Hamano | a3cfb76 | 2012-09-15 05:32:14 | [diff] [blame] | 1339 | For a binary file, the entire contents are taken from our side. |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1340 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1341 | <div class="paragraph"><p>This should not be confused with the <em>ours</em> merge strategy, which does not |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1342 | even look at what the other tree contains at all. It discards everything |
| 1343 | the other tree did, declaring <em>our</em> history contains all that happened in it.</p></div> |
| 1344 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1345 | <dt class="hdlist1"> |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1346 | theirs |
| 1347 | </dt> |
| 1348 | <dd> |
| 1349 | <p> |
Junio C Hamano | a3cfb76 | 2012-09-15 05:32:14 | [diff] [blame] | 1350 | This is the opposite of <em>ours</em>. |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1351 | </p> |
| 1352 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1353 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1354 | patience |
| 1355 | </dt> |
| 1356 | <dd> |
| 1357 | <p> |
| 1358 | With this option, <em>merge-recursive</em> spends a little extra time |
| 1359 | to avoid mismerges that sometimes occur due to unimportant |
| 1360 | matching lines (e.g., braces from distinct functions). Use |
| 1361 | this when the branches to be merged have diverged wildly. |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1362 | See also <a href="git-diff.html">git-diff(1)</a> <code>--patience</code>. |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1363 | </p> |
| 1364 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1365 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1366 | ignore-space-change |
| 1367 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1368 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1369 | ignore-all-space |
| 1370 | </dt> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1371 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1372 | ignore-space-at-eol |
| 1373 | </dt> |
| 1374 | <dd> |
| 1375 | <p> |
| 1376 | Treats lines with the indicated type of whitespace change as |
| 1377 | unchanged for the sake of a three-way merge. Whitespace |
| 1378 | changes mixed with other changes to a line are not ignored. |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1379 | See also <a href="git-diff.html">git-diff(1)</a> <code>-b</code>, <code>-w</code>, and |
| 1380 | <code>--ignore-space-at-eol</code>. |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1381 | </p> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1382 | <div class="ulist"><ul> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1383 | <li> |
| 1384 | <p> |
| 1385 | If <em>their</em> version only introduces whitespace changes to a line, |
| 1386 | <em>our</em> version is used; |
| 1387 | </p> |
| 1388 | </li> |
| 1389 | <li> |
| 1390 | <p> |
| 1391 | If <em>our</em> version introduces whitespace changes but <em>their</em> |
| 1392 | version includes a substantial change, <em>their</em> version is used; |
| 1393 | </p> |
| 1394 | </li> |
| 1395 | <li> |
| 1396 | <p> |
| 1397 | Otherwise, the merge proceeds in the usual way. |
| 1398 | </p> |
| 1399 | </li> |
| 1400 | </ul></div> |
| 1401 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1402 | <dt class="hdlist1"> |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1403 | renormalize |
| 1404 | </dt> |
| 1405 | <dd> |
| 1406 | <p> |
| 1407 | This runs a virtual check-out and check-in of all three stages |
| 1408 | of a file when resolving a three-way merge. This option is |
| 1409 | meant to be used when merging branches with different clean |
| 1410 | filters or end-of-line normalization rules. See "Merging |
| 1411 | branches with differing checkin/checkout attributes" in |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1412 | <a href="gitattributes.html">gitattributes(5)</a> for details. |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1413 | </p> |
| 1414 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1415 | <dt class="hdlist1"> |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1416 | no-renormalize |
| 1417 | </dt> |
| 1418 | <dd> |
| 1419 | <p> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1420 | Disables the <code>renormalize</code> option. This overrides the |
| 1421 | <code>merge.renormalize</code> configuration variable. |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1422 | </p> |
| 1423 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1424 | <dt class="hdlist1"> |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1425 | rename-threshold=<n> |
| 1426 | </dt> |
| 1427 | <dd> |
| 1428 | <p> |
| 1429 | Controls the similarity threshold used for rename detection. |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1430 | See also <a href="git-diff.html">git-diff(1)</a> <code>-M</code>. |
Junio C Hamano | 39c7a69 | 2010-10-27 06:08:54 | [diff] [blame] | 1431 | </p> |
| 1432 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1433 | <dt class="hdlist1"> |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 1434 | subtree[=<path>] |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1435 | </dt> |
| 1436 | <dd> |
| 1437 | <p> |
| 1438 | This option is a more advanced form of <em>subtree</em> strategy, where |
| 1439 | the strategy makes a guess on how two trees must be shifted to |
| 1440 | match with each other when merging. Instead, the specified path |
| 1441 | is prefixed (or stripped from the beginning) to make the shape of |
| 1442 | two trees to match. |
| 1443 | </p> |
| 1444 | </dd> |
| 1445 | </dl></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1446 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1447 | <dt class="hdlist1"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1448 | octopus |
| 1449 | </dt> |
| 1450 | <dd> |
| 1451 | <p> |
Junio C Hamano | 1de7572 | 2009-03-26 08:39:38 | [diff] [blame] | 1452 | This resolves cases with more than two heads, but refuses to do |
| 1453 | a complex merge that needs manual resolution. It is |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1454 | primarily meant to be used for bundling topic branch |
| 1455 | heads together. This is the default merge strategy when |
Junio C Hamano | 1de7572 | 2009-03-26 08:39:38 | [diff] [blame] | 1456 | pulling or merging more than one branch. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1457 | </p> |
| 1458 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1459 | <dt class="hdlist1"> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1460 | ours |
| 1461 | </dt> |
| 1462 | <dd> |
| 1463 | <p> |
Junio C Hamano | bf984de | 2009-11-23 06:11:19 | [diff] [blame] | 1464 | This resolves any number of heads, but the resulting tree of the |
| 1465 | merge is always that of the current branch head, effectively |
| 1466 | ignoring all changes from all other branches. It is meant to |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1467 | be used to supersede old development history of side |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 1468 | branches. Note that this is different from the -Xours option to |
| 1469 | the <em>recursive</em> merge strategy. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1470 | </p> |
| 1471 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1472 | <dt class="hdlist1"> |
Junio C Hamano | e6c9203 | 2008-03-19 09:24:34 | [diff] [blame] | 1473 | subtree |
| 1474 | </dt> |
| 1475 | <dd> |
| 1476 | <p> |
| 1477 | This is a modified recursive strategy. When merging trees A and |
| 1478 | B, if B corresponds to a subtree of A, B is first adjusted to |
| 1479 | match the tree structure of A, instead of reading the trees at |
| 1480 | the same level. This adjustment is also done to the common |
| 1481 | ancestor tree. |
| 1482 | </p> |
| 1483 | </dd> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1484 | </dl></div> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1485 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1486 | </div> |
| 1487 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1488 | <h2 id="_configuration">CONFIGURATION</h2> |
Junio C Hamano | 1e6e006 | 2007-07-13 05:33:25 | [diff] [blame] | 1489 | <div class="sectionbody"> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1490 | <div class="dlist"><dl> |
| 1491 | <dt class="hdlist1"> |
Junio C Hamano | 4653c6f | 2008-11-26 22:50:20 | [diff] [blame] | 1492 | merge.conflictstyle |
Junio C Hamano | 1e6e006 | 2007-07-13 05:33:25 | [diff] [blame] | 1493 | </dt> |
| 1494 | <dd> |
| 1495 | <p> |
Junio C Hamano | 4653c6f | 2008-11-26 22:50:20 | [diff] [blame] | 1496 | Specify the style in which conflicted hunks are written out to |
| 1497 | working tree files upon merge. The default is "merge", which |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1498 | shows a <code><<<<<<<</code> conflict marker, changes made by one side, |
| 1499 | a <code>=======</code> marker, changes made by the other side, and then |
| 1500 | a <code>>>>>>>></code> marker. An alternate style, "diff3", adds a <code>|||||||</code> |
| 1501 | marker and the original text before the <code>=======</code> marker. |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1502 | </p> |
| 1503 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1504 | <dt class="hdlist1"> |
Junio C Hamano | a03ac86 | 2011-04-02 04:32:29 | [diff] [blame] | 1505 | merge.defaultToUpstream |
| 1506 | </dt> |
| 1507 | <dd> |
| 1508 | <p> |
| 1509 | If merge is called without any commit argument, merge the upstream |
| 1510 | branches configured for the current branch by using their last |
Junio C Hamano | a129545 | 2012-11-13 22:32:04 | [diff] [blame] | 1511 | observed values stored in their remote-tracking branches. |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1512 | The values of the <code>branch.<current branch>.merge</code> that name the |
| 1513 | branches at the remote named by <code>branch.<current branch>.remote</code> |
| 1514 | are consulted, and then they are mapped via <code>remote.<remote>.fetch</code> |
Junio C Hamano | a129545 | 2012-11-13 22:32:04 | [diff] [blame] | 1515 | to their corresponding remote-tracking branches, and the tips of |
Junio C Hamano | a03ac86 | 2011-04-02 04:32:29 | [diff] [blame] | 1516 | these tracking branches are merged. |
| 1517 | </p> |
| 1518 | </dd> |
| 1519 | <dt class="hdlist1"> |
Junio C Hamano | 3d050d6 | 2011-05-17 06:43:34 | [diff] [blame] | 1520 | merge.ff |
| 1521 | </dt> |
| 1522 | <dd> |
| 1523 | <p> |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1524 | By default, Git does not create an extra merge commit when merging |
Junio C Hamano | 3d050d6 | 2011-05-17 06:43:34 | [diff] [blame] | 1525 | a commit that is a descendant of the current commit. Instead, the |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1526 | tip of the current branch is fast-forwarded. When set to <code>false</code>, |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1527 | this variable tells Git to create an extra merge commit in such |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1528 | a case (equivalent to giving the <code>--no-ff</code> option from the command |
| 1529 | line). When set to <code>only</code>, only such fast-forward merges are |
| 1530 | allowed (equivalent to giving the <code>--ff-only</code> option from the |
Junio C Hamano | 3d050d6 | 2011-05-17 06:43:34 | [diff] [blame] | 1531 | command line). |
| 1532 | </p> |
| 1533 | </dd> |
| 1534 | <dt class="hdlist1"> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1535 | merge.log |
| 1536 | </dt> |
| 1537 | <dd> |
| 1538 | <p> |
Junio C Hamano | 3b4609d | 2010-09-30 00:04:34 | [diff] [blame] | 1539 | In addition to branch names, populate the log message with at |
| 1540 | most the specified number of one-line descriptions from the |
| 1541 | actual commits that are being merged. Defaults to false, and |
Junio C Hamano | 7165bf7 | 2011-01-04 22:06:18 | [diff] [blame] | 1542 | true is a synonym for 20. |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1543 | </p> |
| 1544 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1545 | <dt class="hdlist1"> |
Junio C Hamano | 2fbcd21 | 2008-05-14 22:26:07 | [diff] [blame] | 1546 | merge.renameLimit |
| 1547 | </dt> |
| 1548 | <dd> |
| 1549 | <p> |
| 1550 | The number of files to consider when performing rename detection |
| 1551 | during a merge; if not specified, defaults to the value of |
| 1552 | diff.renameLimit. |
| 1553 | </p> |
| 1554 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1555 | <dt class="hdlist1"> |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1556 | merge.renormalize |
| 1557 | </dt> |
| 1558 | <dd> |
| 1559 | <p> |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1560 | Tell Git that canonical representation of files in the |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1561 | repository has changed over time (e.g. earlier commits record |
| 1562 | text files with CRLF line endings, but recent ones use LF line |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1563 | endings). In such a repository, Git can convert the data |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1564 | recorded in commits to a canonical form before performing a |
| 1565 | merge to reduce unnecessary conflicts. For more information, |
| 1566 | see section "Merging branches with differing checkin/checkout |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1567 | attributes" in <a href="gitattributes.html">gitattributes(5)</a>. |
Junio C Hamano | 2db3e75 | 2010-09-03 21:33:06 | [diff] [blame] | 1568 | </p> |
| 1569 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1570 | <dt class="hdlist1"> |
Junio C Hamano | 4653c6f | 2008-11-26 22:50:20 | [diff] [blame] | 1571 | merge.stat |
| 1572 | </dt> |
| 1573 | <dd> |
| 1574 | <p> |
| 1575 | Whether to print the diffstat between ORIG_HEAD and the merge result |
| 1576 | at the end of the merge. True by default. |
| 1577 | </p> |
| 1578 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1579 | <dt class="hdlist1"> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1580 | merge.tool |
| 1581 | </dt> |
| 1582 | <dd> |
| 1583 | <p> |
Junio C Hamano | b5e079f | 2013-02-08 00:02:52 | [diff] [blame] | 1584 | Controls which merge tool is used by <a href="git-mergetool.html">git-mergetool(1)</a>. |
| 1585 | The list below shows the valid built-in values. |
| 1586 | Any other value is treated as a custom merge tool and requires |
| 1587 | that a corresponding mergetool.<tool>.cmd variable is defined. |
Junio C Hamano | 1e6e006 | 2007-07-13 05:33:25 | [diff] [blame] | 1588 | </p> |
Junio C Hamano | b5e079f | 2013-02-08 00:02:52 | [diff] [blame] | 1589 | <div class="ulist"><ul> |
| 1590 | <li> |
| 1591 | <p> |
| 1592 | araxis |
| 1593 | </p> |
| 1594 | </li> |
| 1595 | <li> |
| 1596 | <p> |
| 1597 | bc3 |
| 1598 | </p> |
| 1599 | </li> |
| 1600 | <li> |
| 1601 | <p> |
| 1602 | codecompare |
| 1603 | </p> |
| 1604 | </li> |
| 1605 | <li> |
| 1606 | <p> |
| 1607 | deltawalker |
| 1608 | </p> |
| 1609 | </li> |
| 1610 | <li> |
| 1611 | <p> |
| 1612 | diffuse |
| 1613 | </p> |
| 1614 | </li> |
| 1615 | <li> |
| 1616 | <p> |
| 1617 | ecmerge |
| 1618 | </p> |
| 1619 | </li> |
| 1620 | <li> |
| 1621 | <p> |
| 1622 | emerge |
| 1623 | </p> |
| 1624 | </li> |
| 1625 | <li> |
| 1626 | <p> |
| 1627 | gvimdiff |
| 1628 | </p> |
| 1629 | </li> |
| 1630 | <li> |
| 1631 | <p> |
| 1632 | gvimdiff2 |
| 1633 | </p> |
| 1634 | </li> |
| 1635 | <li> |
| 1636 | <p> |
| 1637 | kdiff3 |
| 1638 | </p> |
| 1639 | </li> |
| 1640 | <li> |
| 1641 | <p> |
| 1642 | meld |
| 1643 | </p> |
| 1644 | </li> |
| 1645 | <li> |
| 1646 | <p> |
| 1647 | opendiff |
| 1648 | </p> |
| 1649 | </li> |
| 1650 | <li> |
| 1651 | <p> |
| 1652 | p4merge |
| 1653 | </p> |
| 1654 | </li> |
| 1655 | <li> |
| 1656 | <p> |
| 1657 | tkdiff |
| 1658 | </p> |
| 1659 | </li> |
| 1660 | <li> |
| 1661 | <p> |
| 1662 | tortoisemerge |
| 1663 | </p> |
| 1664 | </li> |
| 1665 | <li> |
| 1666 | <p> |
| 1667 | vimdiff |
| 1668 | </p> |
| 1669 | </li> |
| 1670 | <li> |
| 1671 | <p> |
| 1672 | vimdiff2 |
| 1673 | </p> |
| 1674 | </li> |
| 1675 | <li> |
| 1676 | <p> |
| 1677 | xxdiff |
| 1678 | </p> |
| 1679 | </li> |
| 1680 | </ul></div> |
Junio C Hamano | 1e6e006 | 2007-07-13 05:33:25 | [diff] [blame] | 1681 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1682 | <dt class="hdlist1"> |
Junio C Hamano | 1e6e006 | 2007-07-13 05:33:25 | [diff] [blame] | 1683 | merge.verbosity |
| 1684 | </dt> |
| 1685 | <dd> |
| 1686 | <p> |
| 1687 | Controls the amount of output shown by the recursive merge |
| 1688 | strategy. Level 0 outputs nothing except a final error |
| 1689 | message if conflicts were detected. Level 1 outputs only |
| 1690 | conflicts, 2 outputs conflicts and file changes. Level 5 and |
| 1691 | above outputs debugging information. The default is level 2. |
Junio C Hamano | ec87f52 | 2008-12-10 08:35:25 | [diff] [blame] | 1692 | Can be overridden by the <em>GIT_MERGE_VERBOSITY</em> environment variable. |
Junio C Hamano | 1e6e006 | 2007-07-13 05:33:25 | [diff] [blame] | 1693 | </p> |
| 1694 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1695 | <dt class="hdlist1"> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1696 | merge.<driver>.name |
| 1697 | </dt> |
| 1698 | <dd> |
| 1699 | <p> |
Junio C Hamano | ec87f52 | 2008-12-10 08:35:25 | [diff] [blame] | 1700 | Defines a human-readable name for a custom low-level |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1701 | merge driver. See <a href="gitattributes.html">gitattributes(5)</a> for details. |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1702 | </p> |
| 1703 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1704 | <dt class="hdlist1"> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1705 | merge.<driver>.driver |
| 1706 | </dt> |
| 1707 | <dd> |
| 1708 | <p> |
| 1709 | Defines the command that implements a custom low-level |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1710 | merge driver. See <a href="gitattributes.html">gitattributes(5)</a> for details. |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1711 | </p> |
| 1712 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1713 | <dt class="hdlist1"> |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1714 | merge.<driver>.recursive |
| 1715 | </dt> |
| 1716 | <dd> |
| 1717 | <p> |
| 1718 | Names a low-level merge driver to be used when |
| 1719 | performing an internal merge between common ancestors. |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1720 | See <a href="gitattributes.html">gitattributes(5)</a> for details. |
Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 1721 | </p> |
| 1722 | </dd> |
Junio C Hamano | 68cf15a | 2010-11-06 01:01:59 | [diff] [blame] | 1723 | <dt class="hdlist1"> |
Junio C Hamano | 1b50ce9 | 2007-10-03 12:05:53 | [diff] [blame] | 1724 | branch.<name>.mergeoptions |
| 1725 | </dt> |
| 1726 | <dd> |
| 1727 | <p> |
| 1728 | Sets default options for merging into branch <name>. The syntax and |
Junio C Hamano | c0e55e7 | 2009-10-10 00:56:29 | [diff] [blame] | 1729 | supported options are the same as those of <em>git merge</em>, but option |
| 1730 | values containing whitespace characters are currently not supported. |
Junio C Hamano | 1b50ce9 | 2007-10-03 12:05:53 | [diff] [blame] | 1731 | </p> |
| 1732 | </dd> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1733 | </dl></div> |
Junio C Hamano | 1e6e006 | 2007-07-13 05:33:25 | [diff] [blame] | 1734 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1735 | </div> |
| 1736 | <div class="sect1"> |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 1737 | <h2 id="_see_also">SEE ALSO</h2> |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1738 | <div class="sectionbody"> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1739 | <div class="paragraph"><p><a href="git-fmt-merge-msg.html">git-fmt-merge-msg(1)</a>, <a href="git-pull.html">git-pull(1)</a>, |
| 1740 | <a href="gitattributes.html">gitattributes(5)</a>, |
| 1741 | <a href="git-reset.html">git-reset(1)</a>, |
| 1742 | <a href="git-diff.html">git-diff(1)</a>, <a href="git-ls-files.html">git-ls-files(1)</a>, |
| 1743 | <a href="git-add.html">git-add(1)</a>, <a href="git-rm.html">git-rm(1)</a>, |
| 1744 | <a href="git-mergetool.html">git-mergetool(1)</a></p></div> |
Junio C Hamano | fa2ad88 | 2009-12-03 09:15:44 | [diff] [blame] | 1745 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1746 | </div> |
| 1747 | <div class="sect1"> |
Junio C Hamano | fa2ad88 | 2009-12-03 09:15:44 | [diff] [blame] | 1748 | <h2 id="_git">GIT</h2> |
| 1749 | <div class="sectionbody"> |
Junio C Hamano | a28a920 | 2012-06-21 07:08:23 | [diff] [blame] | 1750 | <div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div> |
Junio C Hamano | fa2ad88 | 2009-12-03 09:15:44 | [diff] [blame] | 1751 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 1752 | </div> |
Junio C Hamano | 9d97115 | 2012-12-19 00:43:11 | [diff] [blame] | 1753 | </div> |
Junio C Hamano | 7bd050f | 2011-09-22 06:32:22 | [diff] [blame] | 1754 | <div id="footnotes"><hr /></div> |
Junio C Hamano | fa2ad88 | 2009-12-03 09:15:44 | [diff] [blame] | 1755 | <div id="footer"> |
| 1756 | <div id="footer-text"> |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 1757 | Last updated 2013-02-05 21:07:26 PST |
Junio C Hamano | fa2ad88 | 2009-12-03 09:15:44 | [diff] [blame] | 1758 | </div> |
| 1759 | </div> |
| 1760 | </body> |
| 1761 | </html> |