1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen/autofree: sb.writeln() optimization fixes

This commit is contained in:
Alexander Medvednikov
2020-07-13 18:59:39 +02:00
parent e5a5e76a30
commit 1c682d7b89
3 changed files with 36 additions and 16 deletions

View File

@ -42,10 +42,10 @@ fn main() {
return
}
*/
last_commits := exec('git log --pretty=format:"%h" -n 20').split('\n')
last_commits := exec('git log --pretty=format:"%h" -n 50').split('\n')
// Fetch all unprocessed commits (commits after the last processed commit)
mut commits := []string{}
println('last_commit="$commit_hash"')
println('!last_commit="$commit_hash"')
for i, c in last_commits {
if c == commit_hash {
commits = last_commits[..i].reverse()