Skip to content

naiveapps/juxtacode-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JuxtaCode Integration

Swift API to launch JuxtaCode's diff tool and merge tool UIs.

To compare 2 changesets:

let repo = URL(filePath: "/path/to/repository")

try await DiffTool.compare("main", and: "feature", in: repo)

To open a merge tool:

let conflictedFile = URL(filePath: "/path/to/conflicted/file.txt")
let repo = URL(filePath: "/path/to/repository")

let result = try await MergeTool.open(conflictedFile, in: repo)

This package does not make use of JuxtaCode's command line tool and doesn't require the user to have it installed.

The SampleClient project demonstrates how the API can be used.

About

Swift API to launch JuxtaCode's diff tool and merge tool.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages