File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
CodeEdit/Features/Git/Client Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ extension GitClient {
1414 /// - maxCount: Maximum amount of entries to get
1515 /// - fileLocalPath: Optional path of file to get history for
1616 /// - Returns: Array of git commits
17+ // swiftlint:disable function_body_length
1718 func getCommitHistory(
1819 branchName: String ? = nil ,
1920 maxCount: Int ? = nil ,
@@ -51,7 +52,9 @@ extension GitClient {
5152 refs = infoRef. split ( separator: " , " ) . compactMap {
5253 var element = String ( $0)
5354 if element. contains ( " origin/HEAD " ) { return nil }
54- if element. contains ( " HEAD -> " ) { element = element. replacingOccurrences ( of: " HEAD -> " , with: " " ) }
55+ if element. contains ( " HEAD -> " ) {
56+ element = element. replacingOccurrences ( of: " HEAD -> " , with: " " )
57+ }
5558 return element. trimmingCharacters ( in: . whitespaces)
5659 }
5760 }
You can’t perform that action at this time.
0 commit comments