File tree 1 file changed +4
-1
lines changed
CodeEdit/Features/Git/Client
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ extension GitClient {
14
14
/// - maxCount: Maximum amount of entries to get
15
15
/// - fileLocalPath: Optional path of file to get history for
16
16
/// - Returns: Array of git commits
17
+ // swiftlint:disable function_body_length
17
18
func getCommitHistory(
18
19
branchName: String ? = nil ,
19
20
maxCount: Int ? = nil ,
@@ -51,7 +52,9 @@ extension GitClient {
51
52
refs = infoRef. split ( separator: " , " ) . compactMap {
52
53
var element = String ( $0)
53
54
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
+ }
55
58
return element. trimmingCharacters ( in: . whitespaces)
56
59
}
57
60
}
You can’t perform that action at this time.
0 commit comments