gitlab api求告知

g270852800 2017-11-13 06:06:17
了解gitlab API的大神看下

git diff commitid1 commitid2 直接git命令可以比较两个提交版本的差异文件

求告知下gitlab api 有没有这样的接口可以比较提交id比较差异文件

gitlab API有没有可以直接比较的接口 。。。小弟查了半天只找到一个比较当前提交的差异文件

下面是我接口文档的链接
http://docs.gitlab.com/ee/api/commits.html#get-the-diff-of-a-commit

哪位大神有文档也可以发我一下。。
跪谢了。。

...全文
713 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
可以指定文件吗
wwp0007 2021-02-04
  • 打赏
  • 举报
回复
我这个是哪里写错了吗
wwp0007 2021-02-04
  • 打赏
  • 举报
回复
curl -X "GET" -H "PRIVATE-TOKEN:xxxxxxxxxx" "https://gitlab.code.byted.org/projects/102205/repository/compare?from=master&to=feature%2Fboe-wwp"
g270852800 2017-11-14
  • 打赏
  • 举报
回复
Compare branches, tags or commits This endpoint can be accessed without authentication if the repository is publicly accessible. GET /projects/:id/repository/compare Parameters: id (required) - The ID or URL-encoded path of the project owned by the authenticated user from (required) - the commit SHA or branch name to (required) - the commit SHA or branch name GET /projects/:id/repository/compare?from=master&to=feature 这个不行吗? 昨天用这个接口没有掉通,今天搞定了。。
g270852800 2017-11-14
  • 打赏
  • 举报
回复
已经解决了。。 https://docs.gitlab.com/ce/api/repositories.html#get-file-archive 这里面有个比价分支或者标签。。搞定的。。thanks
什么都不能 2017-11-14
  • 打赏
  • 举报
回复
Compare branches, tags or commits This endpoint can be accessed without authentication if the repository is publicly accessible. GET /projects/:id/repository/compare Parameters: id (required) - The ID or URL-encoded path of the project owned by the authenticated user from (required) - the commit SHA or branch name to (required) - the commit SHA or branch name GET /projects/:id/repository/compare?from=master&to=feature 这个不行吗?
110成成 2017-11-14
  • 打赏
  • 举报
回复
求告知下gitlab api 有没有这样的接口可以比较提交id比较差异文件 这是什么意思?不是根据commit比较差异文件吗?
g270852800 2017-11-13
  • 打赏
  • 举报
回复
https://docs.gitlab.com/ce/api/repositories.html#get-file-archive 有人帮看看这里的比较接口调不通
g270852800 2017-11-13
  • 打赏
  • 举报
回复
来人那

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧