parent
c1919c08a0
commit
e75af0938f
@ -8,4 +8,11 @@ fun RevCommit.fullData(repository: Repository): RevCommit? {
|
||||
repository.parseCommit(this)
|
||||
else
|
||||
this
|
||||
}
|
||||
}
|
||||
|
||||
fun RevCommit.getShortMessageTrimmed(): String {
|
||||
return (this.fullMessage ?: "")
|
||||
.trimStart()
|
||||
.replace("\r\n", "\n")
|
||||
.takeWhile { it != '\n' }
|
||||
}
|
||||
|
@ -884,8 +884,13 @@ fun CommitMessage(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val message = remember(commit.id.name) {
|
||||
commit.getShortMessageTrimmed()
|
||||
}
|
||||
|
||||
Text(
|
||||
text = commit.shortMessage,
|
||||
text = message,
|
||||
modifier = Modifier
|
||||
.padding(start = 8.dp)
|
||||
.weight(1f),
|
||||
|
Loading…
Reference in New Issue
Block a user