forked from desktop/dugite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# git-kitchen-sink | ||
Incorporate Git into your Electron application | ||
## Incorporate Git into your Electron application | ||
|
||
This is a skunkworks project to make using Git in your Electron application. | ||
|
||
To get started: `npm install git-kitchen-sink --save` | ||
|
||
And then reference it in your application: | ||
|
||
```js | ||
import { GitProcess, GitError, GitErrorCode } from 'git-kitchen-sink' | ||
|
||
const pathToRepository = 'C:/path/to/git/repository/' | ||
|
||
GitProcess.execWithOutput([ '--version' ], pathToRepository) | ||
.then(output => { | ||
// TODO: read version | ||
}) | ||
.catch(error => { | ||
// TODO: better error handling | ||
}) | ||
``` | ||
|
||
Current features: | ||
|
||
- package Git within your application | ||
- make it easy to execute commands | ||
- macOS and Window support | ||
|
||
Potential Roadmap: | ||
|
||
- an API for common Git operations | ||
- Linux support | ||
- handle authentication and environment setup | ||
- ??? |