core.branch-first-commit
- description
- The first (earliest) commit of the branch of the project from index. found is the earliest before index; for the same time the earlier in the list stays
- type
Fn( commits: List<@core.commit-summary>, project_name: String, branch: String, index: Number, found: Union{#none, #some(@core.commit-summary)} ) -> Union{#none, #some(@core.commit-summary)}
- expression
fn(commits$0, project_name$1, branch$2, index$3, found$4) => match @core.list-get(list: $0, index: $3) { #none(_) => $4, #some(item$1007) => let commit$5 = $1007; @core.branch-first-commit( commits: $0, project_name: $1, branch: $2, index: @core.plus(left: $3, right: 1), found: match @core.and( left: @core.equal(left: $5.project_name, right: $1), right: @core.equal(left: $5.branch, right: $2) ) { true => match $4 { #none(_) => #some($5), #some(f$6) => match @core.less-than(left: $5.time, right: $6.time) { true => #some($5), false => $4 } }, false => $4 } ) }
- visibility
- public
core.branch-first-commit (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc) id: CSi9zC_9r4UcJAdJqXBbtNH_GU9gLEQEY7ZmwbegV_A content hash: etaX8ourWoXNWViCvrb1yAIOP9FESTd3cOIEZ5k0cT0