summaryrefslogtreecommitdiff
path: root/Documentation/user-manual.txt
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2013-02-19 10:05:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-19 20:56:30 (GMT)
commit9148673377367db48183a33dcc53c828df397bfc (patch)
treedf7b54a57c26634110a76daa8cfe7ee0f3b5d918 /Documentation/user-manual.txt
parentae6ef554c8c785f96fce482e33cc78080aafc43f (diff)
downloadgit-9148673377367db48183a33dcc53c828df397bfc.zip
git-9148673377367db48183a33dcc53c828df397bfc.tar.gz
git-9148673377367db48183a33dcc53c828df397bfc.tar.bz2
user-manual: Flesh out uncommitted changes and submodule updates
If you try and update a submodule with a dirty working directory, you get an error message like: $ git submodule update error: Your local changes to the following files would be overwritten by checkout: ... Please, commit your changes or stash them before you can switch branches. Aborting ... Mention this in the submodule notes. The previous phrase was short enough that I originally thought it might have been referring to the reflog note (obviously, uncommitted changes will not show up in the reflog either ;). Signed-off-by: W. Trevor King <wking@tremily.us> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/user-manual.txt')
-rw-r--r--Documentation/user-manual.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index acf872d..bb03bc8 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -3739,7 +3739,9 @@ module a
NOTE: The changes are still visible in the submodule's reflog.
-This is not the case if you did not commit your changes.
+If you have uncommitted changes in your submodule working tree, `git
+submodule update` will not overwrite them. Instead, you get the usual
+warning about not being able switch from a dirty branch.
[[low-level-operations]]
Low-level git operations