author | Johan Herland <johan@herland.net> | |
Tue, 2 Jun 2009 22:59:12 +0000 (00:59 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 3 Jun 2009 07:09:16 +0000 (00:09 -0700) | ||
commit | 42b491786260eb17d97ea9fb1c4b70075bca9523 | |
tree | 3c330360a9fdc6abf984c5497ae3c9668009cf10 | tree | snapshot |
parent | 329484256e0fe42676e93669122e7a5a007ef4ed | commit | diff |
git-submodule: add support for --merge.
'git submodule update --merge' merges the commit referenced by the
superproject into your local branch, instead of checking it out on
a detached HEAD.
As evidenced by the addition of "git submodule update --rebase", it
is useful to provide alternatives to the default 'checkout' behaviour
of "git submodule update". One such alternative is, when updating a
submodule to a new commit, to merge that commit into the current
local branch in that submodule. This is useful in workflows where
you want to update your submodule from its upstream, but you cannot
use --rebase, because you have downstream people working on top of
your submodule branch, and you don't want to disrupt their work.
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
'git submodule update --merge' merges the commit referenced by the
superproject into your local branch, instead of checking it out on
a detached HEAD.
As evidenced by the addition of "git submodule update --rebase", it
is useful to provide alternatives to the default 'checkout' behaviour
of "git submodule update". One such alternative is, when updating a
submodule to a new commit, to merge that commit into the current
local branch in that submodule. This is useful in workflows where
you want to update your submodule from its upstream, but you cannot
use --rebase, because you have downstream people working on top of
your submodule branch, and you don't want to disrupt their work.
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt | diff | blob | history | |
Documentation/gitmodules.txt | diff | blob | history | |
git-submodule.sh | diff | blob | history | |
t/t7406-submodule-update.sh | diff | blob | history |