Skip to contentSkip to conversation

Documentation/git-submodule.txt: Document the new 'U' prefix of git submodule status on submodules with merge conflicts

PATCH In review Nicolas Morey-Chaisemartin 2 participants 2 messages Jun 15, 2016 1 message not in the archive Documentation

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 51d033dc2978d62164dcb76b679bb7ebd9bc1802.1300784018.git.nmorey@kalray.eu

#1 lore raw

PATCH 2/2 Documentation/git-submodule.txt: Document the new 'U' prefix of git submodule status on submodules with merge conflicts

---
 Documentation/git-submodule.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
Documentation/git-submodule.txt +3 -2
index 3a5aa01..1a16ff6 100644
@@ -101,9 +101,10 @@ status::
 	currently checked out commit for each submodule, along with the
 	submodule path and the output of 'git describe' for the
 	SHA-1. Each SHA-1 will be prefixed with `-` if the submodule is not
-	initialized and `+` if the currently checked out submodule commit
+	initialized, `+` if the currently checked out submodule commit
 	does not match the SHA-1 found in the index of the containing
-	repository. This command is the default command for 'git submodule'.
+	repository and `U` if the submodule has merge conflicts.
+	This command is the default command for 'git submodule'.
 +
 If '--recursive' is specified, this command will recurse into nested
 submodules, and show their status as well.
Signature · 1 line
1.7.4
#2 lore raw

Am 22.03.2011 09:56, schrieb Nicolas Morey-Chaisemartin:

Quoted 10 lines
---
 Documentation/git-submodule.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
Documentation/git-submodule.txt +0 -0
index 3a5aa01..1a16ff6 100644

Documentation/git-submodule.txt status:: · line 106

Quoted 8 lines
Documentation/git-submodule.txt +2 -2
@@ -101,9 +101,10 @@ status::
 	currently checked out commit for each submodule, along with the
 	submodule path and the output of 'git describe' for the
 	SHA-1. Each SHA-1 will be prefixed with `-` if the submodule is not
-	initialized and `+` if the currently checked out submodule commit
+	initialized, `+` if the currently checked out submodule commit
 	does not match the SHA-1 found in the index of the containing
-	repository. This command is the default command for 'git submodule'.
+	repository and `U` if the submodule has merge conflicts.

Nit: The submodule doesn't have merge conflicts, the superproject does. Maybe something like this (but I suspect a native speaker can come up with something better ;-):

+ repository and U if a merge of the submodule commits produced
+ a conflict.

Documentation/git-submodule.txt status:: · line 110

Quoted 4 lines
Documentation/git-submodule.txt +1 -0
+	This command is the default command for 'git submodule'.
 +
 If '--recursive' is specified, this command will recurse into nested
 submodules, and show their status as well.

And I'd propose to squash this one into the first patch, as it documents the behavior change done there.