代码拉取完成,页面将自动刷新
#!/usr/bin/env python
"""Generates a friendly list of changes per language since the last release."""
import sys
import os
class Language(object):
def __init__(self, name, pathspec):
self.name = name
self.pathspec = pathspec
languages = [
Language("C++", [
"':(glob)src/google/protobuf/*'",
"src/google/protobuf/compiler/cpp",
"src/google/protobuf/io",
"src/google/protobuf/util",
"src/google/protobuf/stubs",
]),
Language("Java", [
"java",
"src/google/protobuf/compiler/java",
]),
Language("Python", [
"python",
"src/google/protobuf/compiler/python",
]),
Language("PHP", [
"php",
"src/google/protobuf/compiler/php",
]),
Language("Ruby", [
"ruby",
"src/google/protobuf/compiler/ruby",
]),
Language("Csharp", [
"csharp",
"src/google/protobuf/compiler/csharp",
]),
Language("Objective C", [
"objectivec",
"src/google/protobuf/compiler/objectivec",
]),
]
if len(sys.argv) < 2:
print("Usage: generate_changelog.py <previous release>")
sys.exit(1)
previous = sys.argv[1]
for language in languages:
print(language.name)
sys.stdout.flush()
os.system(("git log --pretty=oneline --abbrev-commit %s...HEAD %s | " +
"sed -e 's/^/ - /'") % (previous, " ".join(language.pathspec)))
print("")
print("To view a commit on GitHub: " +
"https://github.com/protocolbuffers/protobuf/commit/<commit id>")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。