changelog: Added querySize param and output struct to changelog pkg

A querySize parameter was added to the Changelog() function to accomodate the web application. Since we will not be displaying the entire commit list to users, it would be beneficial for performance if we had the ability to only query the amount of commits we want to display. The return output of Changelog was also changed from map[string][]*Commit to map[string]*RepoLog. RepoLog contains both a list of commits, the source and target committish, and an indicator of whether the list of commits is complete or not.

BUG=b/160901711
TEST=unittests, run local

Change-Id: Ieb62220fbb6e7e122107a9002c2ee4c09d37c231
5 files changed
tree: 4192a9ed561832eaf22c445dea8943291780c796
  1. src/
  2. CONTRIBUTING.md
  3. go.mod
  4. go.sum
  5. LICENSE
  6. README.md
README.md

Tools for Container-Optimized OS

This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.

See CONTRIBUTING.md for how to contribute.