Skip to content

Commit 92a3b41

Browse files
authored
Merge pull request #644 from ben4ever/fix_format
Format various git commands with code formatting
2 parents 0ad66a6 + 33f2105 commit 92a3b41

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

book/04-git-server/sections/gitlab.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ If the project belongs to a user, the owner of the project has direct control ov
7575
Every project also has a visibility level, which controls who has read access to that project's pages and repository.
7676
If a project is _Private_, the project's owner must explicitly grant access to specific users.
7777
An _Internal_ project is visible to any logged-in user, and a _Public_ project is visible to anyone.
78-
Note that this controls both git ``fetch'' access as well as access to the web UI for that project.
78+
Note that this controls both `git fetch` access as well as access to the web UI for that project.
7979

8080
===== Hooks
8181

book/05-distributed-git/sections/maintaining.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ Subject: [PATCH 1/2] add limit to log function
8787
Limit log functionality to the first 20
8888
----
8989

90-
This is the beginning of the output of the format-patch command that you saw in the previous section.
90+
This is the beginning of the output of the `format-patch` command that you saw in the previous section.
9191
This is also a valid mbox email format.
92-
If someone has emailed you the patch properly using git send-email, and you download that into an mbox format, then you can point git am to that mbox file, and it will start applying all the patches it sees.
93-
If you run a mail client that can save several emails out in mbox format, you can save entire patch series into a file and then use git am to apply them one at a time.
92+
If someone has emailed you the patch properly using `git send-email`, and you download that into an mbox format, then you can point `git am` to that mbox file, and it will start applying all the patches it sees.
93+
If you run a mail client that can save several emails out in mbox format, you can save entire patch series into a file and then use `git am` to apply them one at a time.
9494

9595
However, if someone uploaded a patch file generated via `format-patch` to a ticketing system or something similar, you can save the file locally and then pass that file saved on your disk to `git am` to apply it:
9696

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ You can add the following line to your Git attributes file:
294294
test/ export-ignore
295295
----
296296

297-
Now, when you run git archive to create a tarball of your project, that directory won't be included in the archive.
297+
Now, when you run `git archive` to create a tarball of your project, that directory won't be included in the archive.
298298

299299
===== `export-subst`
300300

@@ -324,7 +324,7 @@ $ cat ../deployment-testing/LAST_COMMIT
324324
Last commit date: Tue Apr 21 08:38:48 2009 -0700 by Scott Chacon
325325
----
326326

327-
The substitutions can include for example the commit message and any git notes, and git log can do simple word wrapping:
327+
The substitutions can include for example the commit message and any `git notes`, and `git log` can do simple word wrapping:
328328

329329
[source,console]
330330
----

book/09-git-and-other-scms/sections/client-svn.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ When someone else clones that work, all they see is the merge commit with all th
338338
===== Subversion Branching
339339

340340
Branching in Subversion isn't the same as branching in Git; if you can avoid using it much, that's probably best.
341-
However, you can create and commit to branches in Subversion using git svn.
341+
However, you can create and commit to branches in Subversion using `git svn`.
342342

343343
===== Creating a New SVN Branch
344344

book/09-git-and-other-scms/sections/import-custom.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Your strategy will be to go through the snapshots one at a time and create commi
3131

3232
As we did in <<_an_example_git_enforced_policy>>, we'll write this in Ruby, because it's what we generally work with and it tends to be easy to read.
3333
You can write this example pretty easily in anything you're familiar with – it just needs to print the appropriate information to `stdout`.
34-
And, if you are running on Windows, this means you'll need to take special care to not introduce carriage returns at the end your lines – git fast-import is very particular about just wanting line feeds (LF) not the carriage return line feeds (CRLF) that Windows uses.
34+
And, if you are running on Windows, this means you'll need to take special care to not introduce carriage returns at the end your lines – `git fast-import` is very particular about just wanting line feeds (LF) not the carriage return line feeds (CRLF) that Windows uses.
3535

3636
To begin, you'll change into the target directory and identify every subdirectory, each of which is a snapshot that you want to import as a commit.
3737
You'll change into each subdirectory and print the commands necessary to export it.
@@ -192,8 +192,8 @@ return mark
192192
[NOTE]
193193
====
194194
If you are running on Windows you'll need to make sure that you add one extra step.
195-
As mentioned before, Windows uses CRLF for new line characters while git fast-import expects only LF.
196-
To get around this problem and make git fast-import happy, you need to tell ruby to use LF instead of CRLF:
195+
As mentioned before, Windows uses CRLF for new line characters while `git fast-import` expects only LF.
196+
To get around this problem and make `git fast-import` happy, you need to tell ruby to use LF instead of CRLF:
197197
198198
[source,ruby]
199199
----

book/10-git-internals/sections/environment.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ $ GIT_TRACE_PACKET=true git ls-remote origin
176176
----
177177

178178
*`GIT_TRACE_PERFORMANCE`* controls logging of performance data.
179-
The output shows how long each particular git invocation takes.
179+
The output shows how long each particular `git` invocation takes.
180180

181181
[source,console]
182182
----

0 commit comments

Comments
 (0)