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:
@ -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()
|
||||
|
Reference in New Issue
Block a user