CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

✨ Local changes

Open Angelk90 opened this issue 3 years ago • 0 comments

Describe the solution you'd like

Schermata 2022-05-01 alle 10 51 12

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

Schermata 2022-05-01 alle 10 58 49

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
}

Angelk90 avatar May 01 '22 09:05 Angelk90