progit / progit2-zh

Other
1.46k stars 358 forks source link

第8章出现了多余的翻译 #463

Closed hihaojie closed 11 months ago

hihaojie commented 1 year ago
$ echo '$Format:Last commit: %h by %aN at %cd%n%+w(76,6,9)%B$' > LAST_COMMIT
$ git commit -am 'export-subst uses git log'\''s custom formatter

git archive 直接使用 git log 的 `pretty=format:`
处理器,并在输出中移除两侧的 `$Format:` 和 `$`
标记。
'
$ git archive @ | tar xfO - LAST_COMMIT
Last commit: 312ccc8 by Jim Hill at Fri May 8 09:14:04 2015 -0700
       export-subst uses git log's custom formatter

         git archive uses git log's `pretty=format:` processor directly, and
         strips the surrounding `$Format:` and `$` markup from the output.

这段是代码块的内容,被翻译为中文的内容不应该被翻译,否则代码块内的上下文有歧义。

位置: https://github.com/progit/progit2-zh/blame/a11fb45eaa0ec694d0ef3e38d34d4977690704ce/book/08-customizing-git/sections/attributes.asc#L339

networm commented 11 months ago

@hasban12138 有兴趣的话可以把这个处理下

hasban12138 commented 11 months ago

已经修改