Skip to content

Commit 6629642

Browse files
committed
submodules.asc: clarify DbConnector/try-merge example
Fix AsciiDoc 'source,console' block to render separately the consecutive commands 'git branch try-merge c771610' and 'git merge try-merge'. This is accomplished by separating the commands with an empty line, and by omitting the unneeded "(DbConnector) " prefix in front of the 'git merge...' command prompt. Puts the example into the form consistent with the other command blocks, and also enhances readability. State explicitly in the prose that "try-merge" will be the name of the branch.
1 parent ef6c766 commit 6629642

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/07-git-tools/sections/submodules.asc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ This is what you'll have to merge in and resolve.
605605
You can either just try the merge with the SHA-1 directly, or you can create a branch for it and then try to merge that in.
606606
We would suggest the latter, even if only to make a nicer merge commit message.
607607

608-
So, we will go into our submodule directory, create a branch based on that second SHA-1 from `git diff` and manually merge.
608+
So, we will go into our submodule directory, create a branch named ``try-merge'' based on that second SHA-1 from `git diff`, and manually merge.
609609

610610
[source,console]
611611
----
@@ -615,7 +615,8 @@ $ git rev-parse HEAD
615615
eb41d764bccf88be77aced643c13a7fa86714135
616616
617617
$ git branch try-merge c771610
618-
(DbConnector) $ git merge try-merge
618+
619+
$ git merge try-merge
619620
Auto-merging src/main.c
620621
CONFLICT (content): Merge conflict in src/main.c
621622
Recorded preimage for 'src/main.c'

0 commit comments

Comments
 (0)