Skip to content

Commit a11d5cf

Browse files
committed
Properly mark ruby source blocks as such and simplify how they're presented
1 parent 2906087 commit a11d5cf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ $ git config --global rerere.enabled true
2525
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.
2626

2727
Now let's see a simple example, similar to our previous one.
28-
Let's say we have a file that looks like this:
28+
Let's say we have a file named `hello.rb` that looks like this:
2929

30-
[source,console]
30+
[source,ruby]
3131
----
3232
#! /usr/bin/env ruby
3333
@@ -177,9 +177,8 @@ Patch failed at 0001 i18n one word
177177
Now, we got the same merge conflict like we expected, but take a look at the `Resolved FILE using previous resolution` line.
178178
If we look at the file, we'll see that it's already been resolved, there are no merge conflict markers in it.
179179

180-
[source,console]
180+
[source,ruby]
181181
----
182-
$ cat hello.rb
183182
#! /usr/bin/env ruby
184183
185184
def hello

0 commit comments

Comments
 (0)