[go: up one dir, main page]

Skip to content

repository/commits path parameter returns all commits in the project if only one commit is present

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

The GET /projects/:id/repository/commits API will follow when only a single file is requested. This is because the FindCommits RPC in Gitaly always sets the follow field to true when there is only a single file.

When multiple files are passed, the follow parameter is not always set to true.

Proposal

A new flag could be introduced to the /commits API that would allow you to specify the follow behavior.

Edited by Kai Armstrong