CodeEdit
CodeEdit copied to clipboard
✨ Local changes
Describe the solution you'd like
Having the list of files that have been changed and have not yet been committed would be very helpful.
When you click on one of the files, it should open the file and point the text pointer to the first uncommitted file change.
Additional context
Having parts of this webstorm menu would be useful, for example Rollback.
func getCurrentLocalChanges() throws -> [String] {
let output = try shellClient.run(
"cd \(directoryURL.relativePath.escapedWhiteSpaces());git diff --name-only"
)
.components(separatedBy: "\n")
.filter { $0 != "" }
if output.contains("fatal: not a git repository") {
throw GitClientError.notGitRepository
}
return output
}