parent
c1919c08a0
commit
e75af0938f
@ -9,3 +9,10 @@ fun RevCommit.fullData(repository: Repository): RevCommit? {
|
|||||||
else
|
else
|
||||||
this
|
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(
|
||||||
text = commit.shortMessage,
|
text = message,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(start = 8.dp)
|
.padding(start = 8.dp)
|
||||||
.weight(1f),
|
.weight(1f),
|
||||||
|
Loading…
Reference in New Issue
Block a user