1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-02-25 02:46:01 +01:00

[TC] Print the log size

This commit is contained in:
Alex Plate 2023-07-27 13:05:43 +03:00
parent 721124e8c5
commit b064f94172
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -20,8 +20,8 @@ fun main(args: Array<String>) {
"We should be on master branch"
}
val git = getGit(projectDir)
val log = git.log().setMaxCount(500).call()
println("First commit hash in log: " + log.first().name)
val log = git.log().setMaxCount(500).call().toList()
println("First commit hash in log: " + log.first().name + " log size: ${log.size}")
val logDiff = log.takeWhile { it.id.name != objectId.name }
val numCommits = logDiff.size
println("Log diff size is $numCommits")