1 Star 4 Fork 4

望日蓮/protobuf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
generate_changelog.py 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
Feng Xiao 提交于 2018-08-22 11:55 . Replace repo links.
#!/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("JavaScript", [
"js",
"src/google/protobuf/compiler/js",
]),
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>")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wgqcd/protobuf.git
git@gitee.com:wgqcd/protobuf.git
wgqcd
protobuf
protobuf
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385