| Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 1 | --commit:: | 
 | 2 | --no-commit:: | 
 | 3 | Perform the merge and commit the result. This option can | 
 | 4 | be used to override --no-commit. | 
 | 5 | + | 
 | 6 | With --no-commit perform the merge but pretend the merge | 
 | 7 | failed and do not autocommit, to give the user a chance to | 
 | 8 | inspect and further tweak the merge result before committing. | 
| Junio C Hamano | 610d176 | 2008-11-28 06:27:13 | [diff] [blame] | 9 |  | 
| Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 10 | --ff:: | 
 | 11 | --no-ff:: | 
 | 12 | Do not generate a merge commit if the merge resolved as | 
 | 13 | a fast-forward, only update the branch pointer. This is | 
 | 14 | the default behavior of git-merge. | 
 | 15 | + | 
 | 16 | With --no-ff Generate a merge commit even if the merge | 
 | 17 | resolved as a fast-forward. | 
| Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 18 |  | 
 | 19 | --log:: | 
| Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 20 | --no-log:: | 
| Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 21 | In addition to branch names, populate the log message with | 
 | 22 | one-line descriptions from the actual commits that are being | 
 | 23 | merged. | 
| Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 24 | + | 
 | 25 | With --no-log do not list one-line descriptions from the | 
 | 26 | actual commits being merged. | 
| Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 27 |  | 
| Junio C Hamano | 6d76d61 | 2008-05-09 05:46:08 | [diff] [blame] | 28 |  | 
| Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 29 | --stat:: | 
 | 30 | -n:: | 
 | 31 | --no-stat:: | 
 | 32 | Show a diffstat at the end of the merge. The diffstat is also | 
 | 33 | controlled by the configuration option merge.stat. | 
 | 34 | + | 
 | 35 | With -n or --no-stat do not show a diffstat at the end of the | 
 | 36 | merge. | 
| Junio C Hamano | 1b50ce9 | 2007-10-03 12:05:53 | [diff] [blame] | 37 |  | 
| Junio C Hamano | 3901ffb | 2006-06-26 23:46:53 | [diff] [blame] | 38 | --squash:: | 
| Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 39 | --no-squash:: | 
| Junio C Hamano | 3901ffb | 2006-06-26 23:46:53 | [diff] [blame] | 40 | Produce the working tree and index state as if a real | 
| Junio C Hamano | 9f10ed3 | 2009-05-26 08:38:52 | [diff] [blame] | 41 | merge happened (except for the merge information), | 
 | 42 | but do not actually make a commit or | 
| Junio C Hamano | 3901ffb | 2006-06-26 23:46:53 | [diff] [blame] | 43 | move the `HEAD`, nor record `$GIT_DIR/MERGE_HEAD` to | 
 | 44 | cause the next `git commit` command to create a merge | 
 | 45 | commit. This allows you to create a single commit on | 
 | 46 | top of the current branch whose effect is the same as | 
 | 47 | merging another branch (or more in case of an octopus). | 
| Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 48 | + | 
 | 49 | With --no-squash perform the merge and commit the result. This | 
 | 50 | option can be used to override --squash. | 
| Junio C Hamano | 1b50ce9 | 2007-10-03 12:05:53 | [diff] [blame] | 51 |  | 
| Junio C Hamano | 446ed77 | 2009-11-10 22:02:20 | [diff] [blame] | 52 | --ff-only:: | 
 | 53 | Refuse to merge and exit with a non-zero status unless the | 
 | 54 | current `HEAD` is already up-to-date or the merge can be | 
 | 55 | resolved as a fast-forward. | 
 | 56 |  | 
| Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 57 | -s <strategy>:: | 
 | 58 | --strategy=<strategy>:: | 
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 59 | Use the given merge strategy; can be supplied more than | 
 | 60 | once to specify them in the order they should be tried. | 
 | 61 | If there is no `-s` option, a built-in list of strategies | 
| Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 62 | is used instead ('git merge-recursive' when merging a single | 
 | 63 | head, 'git merge-octopus' otherwise). | 
| Junio C Hamano | c21ab05 | 2009-10-31 04:03:55 | [diff] [blame] | 64 |  | 
 | 65 | --summary:: | 
 | 66 | --no-summary:: | 
 | 67 | Synonyms to --stat and --no-stat; these are deprecated and will be | 
 | 68 | removed in the future. | 
 | 69 |  | 
 | 70 | -q:: | 
 | 71 | --quiet:: | 
 | 72 | Operate quietly. | 
 | 73 |  | 
 | 74 | -v:: | 
 | 75 | --verbose:: | 
 | 76 | Be verbose. | 
| Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 77 |  | 
 | 78 | -X <option>:: | 
 | 79 | --strategy-option=<option>:: | 
 | 80 | Pass merge strategy specific option through to the merge | 
 | 81 | strategy. |