summaryrefslogtreecommitdiff
path: root/Documentation/git-unpack-objects.txt
diff options
context:
space:
mode:
authorLibravatar Nicolas Morey-Chaisemartin <nmorey@kalray.eu>2011-04-01 11:42:03 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-04-04 10:50:50 -0700
commit9db31bdf5c834689c826f809d6d15bf7ab8d3598 (patch)
treea355228e9a008b9430f3e9702a867ac80a19ee02 /Documentation/git-unpack-objects.txt
parentStart preparing for 1.7.4.4 (diff)
downloadtgif-9db31bdf5c834689c826f809d6d15bf7ab8d3598.tar.xz
submodule: Add --force option for git submodule update
By default git submodule update runs a simple checkout on submodules that are not up-to-date. If the submodules contains modified or untracked files, the command may exit sanely with an error: $ git submodule update error: Your local changes to the following files would be overwritten by checkout: file Please, commit your changes or stash them before you can switch branches. Aborting Unable to checkout '1b69c6e55606b48d3284a3a9efe4b58bfb7e8c9e' in submodule path 'test1' In order to reset a whole git submodule tree, a user has to run first 'git submodule foreach --recursive git checkout -f' and then run 'git submodule update'. This patch adds a --force option for the update command (only used for submodules without --rebase or --merge options). It passes the --force option to git checkout which will throw away the local changes. Signed-off-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu> Acked-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-unpack-objects.txt')
0 files changed, 0 insertions, 0 deletions