[go: up one dir, main page]

Skip to content

Gitaly support for ls-tree parameters

Hi

Not sure this is the correct forum to post this question. If wrong, please excuse me.

We are using Gitlab API for one of our application and I'm trying to understand the sort key that is used by gitlab to get all the tree entries in the '/projects/:id/repository/tree' API.

When I dug further, it is reaching to gitly, so posting the request here.

git ls-tree -r 

is the behavior that I'm expecting from this web api, but it is returning

git ls-tree -r -t 

with an internal sorting.

  1. Could someone explain what's the exact sorting that is used by the gitaly api on tree entries list. Is this same as git ls-tree?
  2. Would this client also has support for git ls-tree -r behavior.

Based on the answer, I can raise a change request in Gitlab API to have additional request parameter that can support this behavior.

Thanks,

Narayan

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information