author | Lars Hjemli <hjemli@gmail.com> | |
Sun, 23 Sep 2007 22:51:44 +0000 (00:51 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 24 Sep 2007 00:14:03 +0000 (17:14 -0700) | ||
commit | d08af0ad745869a4fe36bc8df4f9804edfb74eb9 | |
tree | e12eb7e4ce147d4f4c386a8da97c3748950c84ca | tree | snapshot |
parent | aec7b362ad07e1a2c58051c8db653dabffee8960 | commit | diff |
git-merge: add support for --commit and --no-squash
These options can be used to override --no-commit and --squash, which is
needed since --no-commit and --squash now can be specified as default merge
options in $GIT_DIR/config.
The change also introduces slightly different behavior for --no-commit:
when specified, it explicitly overrides --squash. Earlier,
'git merge --squash --no-commit' would result in a squashed merge (i.e. no
$GIT_DIR/MERGE_HEAD was created) but with this patch the command will
behave as if --squash hadn't been specified.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
These options can be used to override --no-commit and --squash, which is
needed since --no-commit and --squash now can be specified as default merge
options in $GIT_DIR/config.
The change also introduces slightly different behavior for --no-commit:
when specified, it explicitly overrides --squash. Earlier,
'git merge --squash --no-commit' would result in a squashed merge (i.e. no
$GIT_DIR/MERGE_HEAD was created) but with this patch the command will
behave as if --squash hadn't been specified.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/merge-options.txt | diff | blob | history | |
git-merge.sh | diff | blob | history | |
t/t7600-merge.sh | diff | blob | history |