Skip to content

[code] 添加原始的示例代码#18

Merged
luohaha merged 7 commits into
luohaha:masterfrom
one-pr:code
Jan 21, 2022
Merged

[code] 添加原始的示例代码#18
luohaha merged 7 commits into
luohaha:masterfrom
one-pr:code

Conversation

@inkydragon

@inkydragon inkydragon commented Dec 16, 2021

Copy link
Copy Markdown

uvbook 合并到 libuv 主项目中了( nikhilm/uvbook#83 )。不知道有没有机会把这边的中文翻译也合并过去。

从 libuv 的 master 分支中 cherry-pick 出示例代码并保留作者信息,然后再导入过来。

# in libuv/
git log --pretty=email --patch-with-stat --reverse --full-index --binary -- docs\code > code.patch

# in Chinese-uvbook
git am --committer-date-is-author-date < code.patch

如果要把这边的翻译合并到 libuv 主项目,也是差不多的操作。主要是这样可以保留历史提交信息。

目前没有更新代码,也没有做构建的支持。这个有机会单独开 pr 吧。
这个 pr 就只导入示例代码。

saghul and others added 7 commits April 25, 2017 08:27
PR-URL: libuv/libuv#1246
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Fixes: libuv/help#4
PR-URL: libuv/libuv#1363
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: libuv/libuv#1330
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Previously, we required the user to specify the expected read/write
flags for a pipe or tty. But we've already been asking the OS to tell us
what they actually are (fcntl F_GETFL), so we can hopefully just use
that information directly.

Fixes: libuv/libuv#1936
PR-URL: libuv/libuv#1964
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
PR-URL: libuv/libuv#2835
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Freenode is gone (replaced by Libera.chat), but IRC was unused anyways.

Fixes: libuv/libuv#3157
Fixes: libuv/libuv#3208
PR-URL: libuv/libuv#3214
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
cherry pick with:

git log --pretty=email --patch-with-stat --reverse --full-index --binary -- path/to/file_or_folder > code.patch
git am --committer-date-is-author-date < code.patch
@luohaha luohaha merged commit 5db70ce into luohaha:master Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants