]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7600-merge.sh
git-merge: add support for --commit and --no-squash
authorLars Hjemli <hjemli@gmail.com>
Sun, 23 Sep 2007 22:51:44 +0000 (00:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Sep 2007 00:14:03 +0000 (17:14 -0700)
commitd08af0ad745869a4fe36bc8df4f9804edfb74eb9
treee12eb7e4ce147d4f4c386a8da97c3748950c84ca
parentaec7b362ad07e1a2c58051c8db653dabffee8960
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>
Documentation/merge-options.txt
git-merge.sh
t/t7600-merge.sh