Explorer

core.branch-commit-count

description
count plus the number of commits of the branch of the project from index
type
Fn(
  commits: List<@core.commit-summary>,
  project_name: String,
  branch: String,
  index: Number,
  count: Number
) -> Number
expression
fn(commits$0, project_name$1, branch$2, index$3, count$4) =>
  match @core.list-get(list: $0, index: $3) {
    #none(_) =>
      $4,
    #some(item$1006) =>
      let commit$5 = $1006;
      @core.branch-commit-count(
        commits: $0,
        project_name: $1,
        branch: $2,
        index: @core.plus(left: $3, right: 1),
        count: match @core.and(
            left: @core.equal(left: $5.project_name, right: $1),
            right: @core.equal(left: $5.branch, right: $2)
          ) {
          true =>
            @core.plus(left: $4, right: 1),
          false =>
            $4
        }
      )
  }
visibility
public
core.branch-commit-count (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: Pcdn4ZpfFzrzrZN21J9n3En5WXwC75lVX7sOCPaCotI
content hash: P68z5GZZD4fe8DHnI8AdbG3ehhyk0-cGu8sezGewVi8