Skip to content

Commit c82fc2c

Browse files
committed
a few more tweaks for consistency
1 parent 47512b4 commit c82fc2c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ git config --global rerere.enabled true
1818

1919
You can also turn it on by creating the `.git/rr-cache` directory in a specific repository, but the config setting is clearer and it can be done globally.
2020

21-
Now let's see a simple example. Let's say we have a file that looks like this:
21+
Now let's see a simple example, similar to our previous one. Let's say we have a file that looks like this:
2222

2323
[source,shell]
2424
----
@@ -29,7 +29,7 @@ def hello
2929
end
3030
----
3131

32-
In one branch we change the word ``hello'' to ``hola'', then in another branch we change the ``world'' to ``mundo''.
32+
In one branch we change the word ``hello'' to ``hola'', then in another branch we change the ``world'' to ``mundo'', just like before.
3333

3434
image::images/rerere1.png[]
3535

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[[_git_submodules]]
12
=== Submodules
23

34
It often happens that while working on one project, you need to use another project from within it.

book/07-git-tools/sections/subtree-merges.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Automatic merge went well; stopped before committing as requested
7979
All the changes from the Rack project are merged in and ready to be committed locally.
8080
You can also do the opposite – make changes in the `rack` subdirectory of your master branch and then merge them into your `rack_branch` branch later to submit them to the maintainers or push them upstream.
8181

82-
This gives us a way to have a workflow somewhat similar to the submodule workflow without using submodules. We can keep branches with other related projects in our repository and subtree merge them into our project occasionally. It is nice in some ways, for example all the code is committed to a single place. However, it has other drawbacks in that it's a bit more complex and easier to make mistakes in reintegrating changes or accidentally pushing a branch into an unrelated repository.
82+
This gives us a way to have a workflow somewhat similar to the submodule workflow without using submodules (which we will cover in <<_git_submodules>>). We can keep branches with other related projects in our repository and subtree merge them into our project occasionally. It is nice in some ways, for example all the code is committed to a single place. However, it has other drawbacks in that it's a bit more complex and easier to make mistakes in reintegrating changes or accidentally pushing a branch into an unrelated repository.
8383

8484
Another slightly weird thing is that to get a diff between what you have in your `rack` subdirectory and the code in your `rack_branch` branch – to see if you need to merge them – you can’t use the normal `diff` command.
8585
Instead, you must run `git diff-tree` with the branch you want to compare to:

0 commit comments

Comments
 (0)