Skip to content

Commit 4f4378e

Browse files
committed
Tag source blocks for .gitattributes files as ini
1 parent 2234b6e commit 4f4378e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

book/08-customizing-git/sections/attributes.asc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In essence, you want to treat it like a binary file.
2424

2525
To tell Git to treat all `pbxproj` files as binary data, add the following line to your `.gitattributes` file:
2626

27-
[source]
27+
[source,ini]
2828
----
2929
*.pbxproj binary
3030
----
@@ -53,7 +53,7 @@ You can't directly compare two versions unless you check them out and scan them
5353
It turns out you can do this fairly well using Git attributes.
5454
Put the following line in your `.gitattributes` file:
5555

56-
[source]
56+
[source,ini]
5757
----
5858
*.docx diff=word
5959
----
@@ -193,7 +193,7 @@ image::images/clean.png[The ``clean'' filter is run when files are staged.]
193193
The original commit message for this feature gives a simple example of running all your C source code through the `indent` program before committing.
194194
You can set it up by setting the filter attribute in your `.gitattributes` file to filter `*.c` files with the ``indent'' filter:
195195

196-
[source]
196+
[source,ini]
197197
----
198198
*.c filter=indent
199199
----
@@ -271,7 +271,7 @@ If there is a subdirectory or file that you don't want to include in your archiv
271271
For example, say you have some test files in a `test/` subdirectory, and it doesn't make sense to include them in the tarball export of your project.
272272
You can add the following line to your Git attributes file:
273273

274-
[source]
274+
[source,ini]
275275
----
276276
test/ export-ignore
277277
----
@@ -333,7 +333,7 @@ This is helpful if a branch in your project has diverged or is specialized, but
333333
Say you have a database settings file called `database.xml` that is different in two branches, and you want to merge in your other branch without messing up the database file.
334334
You can set up an attribute like this:
335335

336-
[source]
336+
[source,ini]
337337
----
338338
database.xml merge=ours
339339
----

0 commit comments

Comments
 (0)