MCPcopy Index your code
hub / github.com/nikivdev/go / getConflictedFiles

Function getConflictedFiles

cli/flow/main.go:3778–3793  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3776}
3777
3778func getConflictedFiles() []string {
3779 cmd := exec.Command("git", "diff", "--name-only", "--diff-filter=U")
3780 output, err := cmd.Output()
3781 if err != nil {
3782 return nil
3783 }
3784
3785 var files []string
3786 lines := strings.Split(strings.TrimSpace(string(output)), "\n")
3787 for _, line := range lines {
3788 if line != "" {
3789 files = append(files, line)
3790 }
3791 }
3792 return files
3793}
3794
3795func gitCloneTo(ctx *snap.Context, cloneURL, targetDir string) error {
3796 cmd := exec.Command("git", "clone", cloneURL, targetDir)

Callers 1

runSmartCherryPickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected