We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7228a commit 2ad2649Copy full SHA for 2ad2649
1 file changed
CodeEdit/Features/Git/Client/GitClient+CommitHistory.swift
@@ -25,9 +25,11 @@ extension GitClient {
25
if let branchName { branchNameString = "--first-parent \(branchName)" }
26
if let maxCount { maxCountString = "-n \(maxCount)" }
27
let dateFormatter = DateFormatter()
28
+
29
+ // Can't use `Locale.current`, since it'd give a nil date outside the US
30
dateFormatter.locale = Locale(identifier: Locale.current.identifier)
-// dateFormatter.locale = Locale(identifier: "en_US_POSIX")
31
dateFormatter.dateFormat = "EEE, dd MMM yyyy HH:mm:ss Z"
32
33
let output = try await run(
34
"log --pretty=%h¦%H¦%s¦%aN¦%ae¦%cn¦%ce¦%aD¦ \(maxCountString) \(branchNameString) \(fileLocalPath)"
35
.trimmingCharacters(in: .whitespacesAndNewlines)
0 commit comments