Skip to content

Commit 2fe285b

Browse files
author
chengz
committed
英文标点修改
1 parent b831e09 commit 2fe285b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Git 内置了相当完整的跟踪信息,你需要做的就是把它们打开
136136
*`GIT_TRACE`* controls general traces, which don't fit into any specific category.
137137
This includes the expansion of aliases, and delegation to other sub-programs.
138138

139-
[sourceconsole]
139+
[source,console]
140140
----
141141
$ GIT_TRACE=true git lga
142142
20:12:49.877982 git.c:554 trace: exec: 'git-lga'
@@ -150,7 +150,7 @@ $ GIT_TRACE=true git lga
150150
*`GIT_TRACE_PACK_ACCESS`* 控制访问打包文件的跟踪信息
151151
第一个字段是被访问的打包文件,第二个是文件的偏移量:
152152

153-
[sourceconsole]
153+
[source,console]
154154
----
155155
$ GIT_TRACE_PACK_ACCESS=true git status
156156
20:10:12.081397 sha1_file.c:2088 .git/objects/pack/pack-c3fa...291e.pack 12
@@ -166,7 +166,7 @@ nothing to commit, working directory clean
166166

167167
*`GIT_TRACE_PACKET`* 打开网络操作包级别的跟踪信息
168168

169-
[sourceconsole]
169+
[source,console]
170170
----
171171
$ GIT_TRACE_PACKET=true git ls-remote origin
172172
20:15:14.867043 pkt-line.c:46 packet: git< # service=git-upload-pack
@@ -180,7 +180,7 @@ $ GIT_TRACE_PACKET=true git ls-remote origin
180180
*`GIT_TRACE_PERFORMANCE`* 控制性能数据的日志打印。
181181
输出显示了每个 Git 调用花费的时间。
182182

183-
[sourceconsole]
183+
[source,console]
184184
----
185185
$ GIT_TRACE_PERFORMANCE=true git gc
186186
20:18:19.499676 trace.c:414 performance: 0.374835000 s: git command: 'git' 'pack-refs' '--all' '--prune'
@@ -202,7 +202,7 @@ Checking connectivity: 170994, done.
202202

203203
*`GIT_TRACE_SETUP`* 显示 Git 发现的关于版本库和交互环境的信息
204204

205-
[sourceconsole]
205+
[source,console]
206206
----
207207
$ GIT_TRACE_SETUP=true git status
208208
20:19:47.086765 trace.c:315 setup: git_dir: .git
@@ -235,7 +235,7 @@ nothing to commit, working directory clean
235235
*`GIT_REFLOG_ACTION`* 让你可以指定描述性的文字写到 reflog 中。
236236
这儿有一个栗子:
237237

238-
[sourceconsole]
238+
[source,console]
239239
----
240240
$ GIT_REFLOG_ACTION="my action" git commit --allow-empty -m 'my message'
241241
[master 9e3d55a] my message

0 commit comments

Comments
 (0)