0

When comparing two branches from GitLab repository, using gitlab api:

GET /projects/:id/repository/compare?from=master&to=feature

I get different from git diff --name-only <from> <to> results - more files than expected. Seems like gitlab's compare returns files with old commits.

Can you help me to understand why this is happening, please?

MRed
  • 15
  • 1
  • 7

1 Answers1

0

I was wondering if this has been resolved. I have the same observations, more or less, as MRed.

LND
  • 142
  • 9
  • They added 'straight' option, maybe this can help https://docs.gitlab.com/ee/api/repositories.html#compare-branches-tags-or-commits – MRed Dec 07 '18 at 05:48