git-chopstick-core 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +324 -32
- package/dist/git/add.d.ts +9 -0
- package/dist/git/add.js +11 -0
- package/dist/git/add.js.map +1 -0
- package/dist/git/apply.d.ts +33 -0
- package/dist/git/apply.js +103 -0
- package/dist/git/apply.js.map +1 -0
- package/dist/git/authentication.d.ts +5 -0
- package/dist/git/authentication.js +19 -0
- package/dist/git/authentication.js.map +1 -0
- package/dist/git/branch.d.ts +43 -0
- package/dist/git/branch.js +150 -0
- package/dist/git/branch.js.map +1 -0
- package/dist/git/checkout-index.d.ts +19 -0
- package/{src/git/checkout-index.ts → dist/git/checkout-index.js} +11 -22
- package/dist/git/checkout-index.js.map +1 -0
- package/dist/git/checkout.d.ts +46 -0
- package/dist/git/checkout.js +126 -0
- package/dist/git/checkout.js.map +1 -0
- package/dist/git/cherry-pick.d.ts +82 -0
- package/dist/git/cherry-pick.js +371 -0
- package/dist/git/cherry-pick.js.map +1 -0
- package/dist/git/clean.d.ts +5 -0
- package/dist/git/clean.js +8 -0
- package/dist/git/clean.js.map +1 -0
- package/dist/git/clone.d.ts +22 -0
- package/dist/git/clone.js +58 -0
- package/dist/git/clone.js.map +1 -0
- package/dist/git/coerce-to-buffer.d.ts +1 -0
- package/dist/git/coerce-to-buffer.js +2 -0
- package/dist/git/coerce-to-buffer.js.map +1 -0
- package/dist/git/coerce-to-string.d.ts +1 -0
- package/dist/git/coerce-to-string.js +2 -0
- package/dist/git/coerce-to-string.js.map +1 -0
- package/dist/git/commit.d.ts +25 -0
- package/dist/git/commit.js +99 -0
- package/dist/git/commit.js.map +1 -0
- package/dist/git/config.d.ts +98 -0
- package/dist/git/config.js +249 -0
- package/dist/git/config.js.map +1 -0
- package/dist/git/core.d.ts +167 -0
- package/dist/git/core.js +368 -0
- package/dist/git/core.js.map +1 -0
- package/dist/git/create-tail-stream.d.ts +4 -0
- package/dist/git/create-tail-stream.js +30 -0
- package/dist/git/create-tail-stream.js.map +1 -0
- package/dist/git/credential.d.ts +5 -0
- package/dist/git/credential.js +64 -0
- package/dist/git/credential.js.map +1 -0
- package/dist/git/description.d.ts +5 -0
- package/dist/git/description.js +24 -0
- package/dist/git/description.js.map +1 -0
- package/dist/git/diff-check.d.ts +7 -0
- package/dist/git/diff-check.js +17 -0
- package/dist/git/diff-check.js.map +1 -0
- package/dist/git/diff-index.d.ts +31 -0
- package/dist/git/diff-index.js +76 -0
- package/dist/git/diff-index.js.map +1 -0
- package/dist/git/diff.d.ts +81 -0
- package/dist/git/diff.js +611 -0
- package/dist/git/diff.js.map +1 -0
- package/dist/git/environment.d.ts +51 -0
- package/dist/git/environment.js +97 -0
- package/dist/git/environment.js.map +1 -0
- package/dist/git/exec.d.ts +109 -0
- package/dist/git/exec.js +224 -0
- package/dist/git/exec.js.map +1 -0
- package/dist/git/fetch.d.ts +25 -0
- package/dist/git/fetch.js +100 -0
- package/dist/git/fetch.js.map +1 -0
- package/dist/git/for-each-ref.d.ts +13 -0
- package/dist/git/for-each-ref.js +114 -0
- package/dist/git/for-each-ref.js.map +1 -0
- package/dist/git/format-patch.d.ts +10 -0
- package/dist/git/format-patch.js +16 -0
- package/dist/git/format-patch.js.map +1 -0
- package/dist/git/git-delimiter-parser.d.ts +38 -0
- package/dist/git/git-delimiter-parser.js +79 -0
- package/dist/git/git-delimiter-parser.js.map +1 -0
- package/dist/git/gitignore.d.ts +26 -0
- package/dist/git/gitignore.js +124 -0
- package/dist/git/gitignore.js.map +1 -0
- package/dist/git/index.d.ts +46 -0
- package/dist/git/index.js +47 -0
- package/dist/git/index.js.map +1 -0
- package/dist/git/init.d.ts +2 -0
- package/dist/git/init.js +7 -0
- package/dist/git/init.js.map +1 -0
- package/{src/git/interpret-trailers.ts → dist/git/interpret-trailers.d.ts} +9 -97
- package/dist/git/interpret-trailers.js +130 -0
- package/dist/git/interpret-trailers.js.map +1 -0
- package/dist/git/lfs.d.ts +25 -0
- package/dist/git/lfs.js +73 -0
- package/dist/git/lfs.js.map +1 -0
- package/dist/git/log.d.ts +56 -0
- package/dist/git/log.js +258 -0
- package/dist/git/log.js.map +1 -0
- package/dist/git/merge-tree.d.ts +13 -0
- package/dist/git/merge-tree.js +24 -0
- package/dist/git/merge-tree.js.map +1 -0
- package/dist/git/merge.d.ts +50 -0
- package/dist/git/merge.js +111 -0
- package/dist/git/merge.js.map +1 -0
- package/dist/git/multi-operation-terminal-output.d.ts +20 -0
- package/dist/git/multi-operation-terminal-output.js +56 -0
- package/dist/git/multi-operation-terminal-output.js.map +1 -0
- package/dist/git/pull.d.ts +24 -0
- package/dist/git/pull.js +91 -0
- package/dist/git/pull.js.map +1 -0
- package/{src/git/push-terminal-chunk.ts → dist/git/push-terminal-chunk.d.ts} +1 -23
- package/dist/git/push-terminal-chunk.js +36 -0
- package/dist/git/push-terminal-chunk.js.map +1 -0
- package/dist/git/push.d.ts +42 -0
- package/dist/git/push.js +80 -0
- package/dist/git/push.js.map +1 -0
- package/dist/git/rebase.d.ts +119 -0
- package/dist/git/rebase.js +415 -0
- package/dist/git/rebase.js.map +1 -0
- package/dist/git/reflog.d.ts +14 -0
- package/dist/git/reflog.js +88 -0
- package/dist/git/reflog.js.map +1 -0
- package/dist/git/refs.d.ts +26 -0
- package/dist/git/refs.js +53 -0
- package/dist/git/refs.js.map +1 -0
- package/dist/git/remote.d.ts +31 -0
- package/dist/git/remote.js +81 -0
- package/dist/git/remote.js.map +1 -0
- package/dist/git/reorder.d.ts +23 -0
- package/dist/git/reorder.js +111 -0
- package/dist/git/reorder.js.map +1 -0
- package/dist/git/reset.d.ts +41 -0
- package/dist/git/reset.js +86 -0
- package/dist/git/reset.js.map +1 -0
- package/dist/git/rev-list.d.ts +67 -0
- package/dist/git/rev-list.js +157 -0
- package/dist/git/rev-list.js.map +1 -0
- package/dist/git/rev-parse.d.ts +24 -0
- package/dist/git/rev-parse.js +65 -0
- package/dist/git/rev-parse.js.map +1 -0
- package/dist/git/revert.d.ts +12 -0
- package/dist/git/revert.js +30 -0
- package/dist/git/revert.js.map +1 -0
- package/dist/git/rm.d.ts +12 -0
- package/dist/git/rm.js +22 -0
- package/dist/git/rm.js.map +1 -0
- package/dist/git/show.d.ts +42 -0
- package/{src/git/show.ts → dist/git/show.js} +17 -46
- package/dist/git/show.js.map +1 -0
- package/dist/git/spawn.d.ts +18 -0
- package/dist/git/spawn.js +16 -0
- package/dist/git/spawn.js.map +1 -0
- package/dist/git/squash.d.ts +28 -0
- package/dist/git/squash.js +127 -0
- package/dist/git/squash.js.map +1 -0
- package/dist/git/stage.d.ts +21 -0
- package/dist/git/stage.js +72 -0
- package/dist/git/stage.js.map +1 -0
- package/dist/git/stash.d.ts +53 -0
- package/dist/git/stash.js +204 -0
- package/dist/git/stash.js.map +1 -0
- package/dist/git/status.d.ts +39 -0
- package/dist/git/status.js +293 -0
- package/dist/git/status.js.map +1 -0
- package/dist/git/submodule.d.ts +20 -0
- package/dist/git/submodule.js +153 -0
- package/dist/git/submodule.js.map +1 -0
- package/dist/git/tag.d.ts +32 -0
- package/dist/git/tag.js +101 -0
- package/dist/git/tag.js.map +1 -0
- package/dist/git/update-index.d.ts +11 -0
- package/dist/git/update-index.js +99 -0
- package/dist/git/update-index.js.map +1 -0
- package/dist/git/update-ref.d.ts +23 -0
- package/{src/git/update-ref.ts → dist/git/update-ref.js} +10 -28
- package/dist/git/update-ref.js.map +1 -0
- package/dist/git/var.d.ts +18 -0
- package/{src/git/var.ts → dist/git/var.js} +16 -25
- package/dist/git/var.js.map +1 -0
- package/dist/git/worktree-include.d.ts +42 -0
- package/dist/git/worktree-include.js +109 -0
- package/dist/git/worktree-include.js.map +1 -0
- package/dist/git/worktree.d.ts +25 -0
- package/dist/git/worktree.js +139 -0
- package/dist/git/worktree.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/api.d.ts +2 -0
- package/dist/lib/api.js +7 -0
- package/dist/lib/api.js.map +1 -0
- package/dist/lib/diff-parser.d.ts +20 -0
- package/dist/lib/diff-parser.js +184 -0
- package/dist/lib/diff-parser.js.map +1 -0
- package/dist/lib/directory-exists.d.ts +1 -0
- package/dist/lib/directory-exists.js +11 -0
- package/dist/lib/directory-exists.js.map +1 -0
- package/dist/lib/errno-exception.d.ts +6 -0
- package/dist/lib/errno-exception.js +6 -0
- package/dist/lib/errno-exception.js.map +1 -0
- package/dist/lib/fatal-error.d.ts +4 -0
- package/dist/lib/fatal-error.js +18 -0
- package/dist/lib/fatal-error.js.map +1 -0
- package/dist/lib/feature-flag.d.ts +14 -0
- package/dist/lib/feature-flag.js +25 -0
- package/dist/lib/feature-flag.js.map +1 -0
- package/dist/lib/file-system.d.ts +1 -0
- package/dist/lib/file-system.js +7 -0
- package/dist/lib/file-system.js.map +1 -0
- package/dist/lib/get-old-path.d.ts +2 -0
- package/dist/lib/get-old-path.js +9 -0
- package/dist/lib/get-old-path.js.map +1 -0
- package/dist/lib/git/environment.d.ts +3 -0
- package/dist/lib/git/environment.js +7 -0
- package/dist/lib/git/environment.js.map +1 -0
- package/dist/lib/git-perf.d.ts +1 -0
- package/dist/lib/git-perf.js +4 -0
- package/dist/lib/git-perf.js.map +1 -0
- package/dist/lib/helpers/default-branch.d.ts +1 -0
- package/dist/lib/helpers/default-branch.js +4 -0
- package/dist/lib/helpers/default-branch.js.map +1 -0
- package/dist/lib/helpers/path.d.ts +1 -0
- package/dist/lib/helpers/path.js +5 -0
- package/dist/lib/helpers/path.js.map +1 -0
- package/dist/lib/hooks/with-hooks-env.d.ts +3 -0
- package/dist/lib/hooks/with-hooks-env.js +4 -0
- package/dist/lib/hooks/with-hooks-env.js.map +1 -0
- package/dist/lib/merge.d.ts +1 -0
- package/dist/lib/merge.js +4 -0
- package/dist/lib/merge.js.map +1 -0
- package/dist/lib/noop.d.ts +1 -0
- package/dist/lib/noop.js +2 -0
- package/dist/lib/noop.js.map +1 -0
- package/dist/lib/patch-formatter.d.ts +5 -0
- package/dist/lib/patch-formatter.js +7 -0
- package/dist/lib/patch-formatter.js.map +1 -0
- package/dist/lib/path-exists.d.ts +1 -0
- package/dist/lib/path-exists.js +3 -0
- package/dist/lib/path-exists.js.map +1 -0
- package/dist/lib/progress/from-process.d.ts +2 -0
- package/dist/lib/progress/from-process.js +4 -0
- package/dist/lib/progress/from-process.js.map +1 -0
- package/dist/lib/progress/index.d.ts +49 -0
- package/dist/lib/progress/index.js +32 -0
- package/dist/lib/progress/index.js.map +1 -0
- package/dist/lib/progress/revert.d.ts +8 -0
- package/dist/lib/progress/revert.js +15 -0
- package/dist/lib/progress/revert.js.map +1 -0
- package/dist/lib/rebase.d.ts +1 -0
- package/dist/lib/rebase.js +4 -0
- package/dist/lib/rebase.js.map +1 -0
- package/dist/lib/remove-remote-prefix.d.ts +1 -0
- package/dist/lib/remove-remote-prefix.js +5 -0
- package/dist/lib/remove-remote-prefix.js.map +1 -0
- package/dist/lib/resolve-git-proxy.d.ts +1 -0
- package/dist/lib/resolve-git-proxy.js +4 -0
- package/dist/lib/resolve-git-proxy.js.map +1 -0
- package/dist/lib/round.d.ts +1 -0
- package/dist/lib/round.js +5 -0
- package/dist/lib/round.js.map +1 -0
- package/dist/lib/split-buffer.d.ts +1 -0
- package/dist/lib/split-buffer.js +15 -0
- package/dist/lib/split-buffer.js.map +1 -0
- package/dist/lib/status-parser.d.ts +19 -0
- package/dist/lib/status-parser.js +125 -0
- package/dist/lib/status-parser.js.map +1 -0
- package/dist/lib/stores/helpers/find-default-remote.d.ts +1 -0
- package/dist/lib/stores/helpers/find-default-remote.js +4 -0
- package/dist/lib/stores/helpers/find-default-remote.js.map +1 -0
- package/dist/lib/trampoline/trampoline-environment.d.ts +1 -0
- package/dist/lib/trampoline/trampoline-environment.js +4 -0
- package/dist/lib/trampoline/trampoline-environment.js.map +1 -0
- package/dist/models/branch.d.ts +44 -0
- package/dist/models/branch.js +59 -0
- package/dist/models/branch.js.map +1 -0
- package/dist/models/cherry-pick.d.ts +11 -0
- package/dist/models/cherry-pick.js +2 -0
- package/dist/models/cherry-pick.js.map +1 -0
- package/dist/models/clone-options.d.ts +6 -0
- package/dist/models/clone-options.js +2 -0
- package/dist/models/clone-options.js.map +1 -0
- package/dist/models/commit-identity.d.ts +9 -0
- package/dist/models/commit-identity.js +34 -0
- package/dist/models/commit-identity.js.map +1 -0
- package/dist/models/commit.d.ts +30 -0
- package/dist/models/commit.js +32 -0
- package/dist/models/commit.js.map +1 -0
- package/dist/models/computed-action.d.ts +6 -0
- package/dist/models/computed-action.js +8 -0
- package/dist/models/computed-action.js.map +1 -0
- package/dist/models/diff/diff-data.d.ts +53 -0
- package/dist/models/diff/diff-data.js +19 -0
- package/dist/models/diff/diff-data.js.map +1 -0
- package/dist/models/diff/diff-line.d.ts +18 -0
- package/dist/models/diff/diff-line.js +33 -0
- package/dist/models/diff/diff-line.js.map +1 -0
- package/dist/models/diff/diff-selection.d.ts +22 -0
- package/dist/models/diff/diff-selection.js +127 -0
- package/dist/models/diff/diff-selection.js.map +1 -0
- package/dist/models/diff/image-diff.d.ts +6 -0
- package/dist/models/diff/image-diff.js +8 -0
- package/dist/models/diff/image-diff.js.map +1 -0
- package/dist/models/diff/image.d.ts +7 -0
- package/dist/models/diff/image.js +13 -0
- package/dist/models/diff/image.js.map +1 -0
- package/dist/models/diff/index.d.ts +6 -0
- package/dist/models/diff/index.js +7 -0
- package/dist/models/diff/index.js.map +1 -0
- package/dist/models/diff/raw-diff.d.ts +32 -0
- package/dist/models/diff/raw-diff.js +38 -0
- package/dist/models/diff/raw-diff.js.map +1 -0
- package/dist/models/git-author.d.ts +7 -0
- package/dist/models/git-author.js +18 -0
- package/dist/models/git-author.js.map +1 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +20 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/manual-conflict-resolution.d.ts +4 -0
- package/dist/models/manual-conflict-resolution.js +6 -0
- package/dist/models/manual-conflict-resolution.js.map +1 -0
- package/dist/models/merge.d.ts +6 -0
- package/dist/models/merge.js +2 -0
- package/dist/models/merge.js.map +1 -0
- package/dist/models/multi-commit-operation.d.ts +6 -0
- package/dist/models/multi-commit-operation.js +8 -0
- package/dist/models/multi-commit-operation.js.map +1 -0
- package/dist/models/progress.d.ts +41 -0
- package/dist/models/progress.js +7 -0
- package/dist/models/progress.js.map +1 -0
- package/dist/models/rebase.d.ts +17 -0
- package/dist/models/rebase.js +8 -0
- package/dist/models/rebase.js.map +1 -0
- package/dist/models/remote.d.ts +5 -0
- package/dist/models/remote.js +8 -0
- package/dist/models/remote.js.map +1 -0
- package/dist/models/repository.d.ts +7 -0
- package/dist/models/repository.js +15 -0
- package/dist/models/repository.js.map +1 -0
- package/dist/models/stash-entry.d.ts +20 -0
- package/dist/models/stash-entry.js +7 -0
- package/dist/models/stash-entry.js.map +1 -0
- package/dist/models/status.d.ts +166 -0
- package/dist/models/status.js +135 -0
- package/dist/models/status.js.map +1 -0
- package/dist/models/submodule.d.ts +12 -0
- package/dist/models/submodule.js +2 -0
- package/dist/models/submodule.js.map +1 -0
- package/dist/models/worktree.d.ts +10 -0
- package/dist/models/worktree.js +2 -0
- package/dist/models/worktree.js.map +1 -0
- package/package.json +44 -5
- package/examples/get-status.ts +0 -84
- package/src/git/add.ts +0 -16
- package/src/git/apply.ts +0 -154
- package/src/git/authentication.ts +0 -19
- package/src/git/branch.ts +0 -206
- package/src/git/checkout.ts +0 -235
- package/src/git/cherry-pick.ts +0 -504
- package/src/git/clean.ts +0 -9
- package/src/git/clone.ts +0 -86
- package/src/git/coerce-to-buffer.ts +0 -4
- package/src/git/coerce-to-string.ts +0 -4
- package/src/git/commit.ts +0 -136
- package/src/git/config.ts +0 -392
- package/src/git/core.ts +0 -625
- package/src/git/create-tail-stream.ts +0 -36
- package/src/git/credential.ts +0 -83
- package/src/git/description.ts +0 -33
- package/src/git/diff-check.ts +0 -27
- package/src/git/diff-index.ts +0 -116
- package/src/git/diff.ts +0 -880
- package/src/git/environment.ts +0 -116
- package/src/git/exec.ts +0 -285
- package/src/git/fetch.ts +0 -141
- package/src/git/for-each-ref.ts +0 -160
- package/src/git/format-patch.ts +0 -17
- package/src/git/git-delimiter-parser.ts +0 -95
- package/src/git/gitignore.ts +0 -157
- package/src/git/index.ts +0 -36
- package/src/git/init.ts +0 -11
- package/src/git/lfs.ts +0 -100
- package/src/git/log.ts +0 -376
- package/src/git/merge-tree.ts +0 -42
- package/src/git/merge.ts +0 -154
- package/src/git/multi-operation-terminal-output.ts +0 -68
- package/src/git/pull.ts +0 -130
- package/src/git/push.ts +0 -119
- package/src/git/rebase.ts +0 -627
- package/src/git/reflog.ts +0 -127
- package/src/git/refs.ts +0 -63
- package/src/git/remote.ts +0 -143
- package/src/git/reorder.ts +0 -153
- package/src/git/reset.ts +0 -101
- package/src/git/rev-list.ts +0 -201
- package/src/git/rev-parse.ts +0 -92
- package/src/git/revert.ts +0 -55
- package/src/git/rm.ts +0 -31
- package/src/git/spawn.ts +0 -38
- package/src/git/squash.ts +0 -173
- package/src/git/stage.ts +0 -97
- package/src/git/stash.ts +0 -302
- package/src/git/status.ts +0 -502
- package/src/git/submodule.ts +0 -212
- package/src/git/tag.ts +0 -134
- package/src/git/update-index.ts +0 -169
- package/src/git/worktree-include.ts +0 -146
- package/src/git/worktree.ts +0 -219
- package/src/index.ts +0 -23
- package/src/lib/api.ts +0 -7
- package/src/lib/diff-parser.ts +0 -249
- package/src/lib/directory-exists.ts +0 -10
- package/src/lib/errno-exception.ts +0 -12
- package/src/lib/fatal-error.ts +0 -23
- package/src/lib/feature-flag.ts +0 -29
- package/src/lib/file-system.ts +0 -7
- package/src/lib/get-old-path.ts +0 -11
- package/src/lib/git/environment.ts +0 -14
- package/src/lib/git-perf.ts +0 -3
- package/src/lib/helpers/default-branch.ts +0 -3
- package/src/lib/helpers/path.ts +0 -5
- package/src/lib/hooks/with-hooks-env.ts +0 -7
- package/src/lib/merge.ts +0 -3
- package/src/lib/noop.ts +0 -1
- package/src/lib/patch-formatter.ts +0 -18
- package/src/lib/path-exists.ts +0 -7
- package/src/lib/progress/from-process.ts +0 -10
- package/src/lib/progress/index.ts +0 -43
- package/src/lib/progress/revert.ts +0 -17
- package/src/lib/rebase.ts +0 -3
- package/src/lib/remove-remote-prefix.ts +0 -4
- package/src/lib/resolve-git-proxy.ts +0 -3
- package/src/lib/round.ts +0 -4
- package/src/lib/split-buffer.ts +0 -14
- package/src/lib/status-parser.ts +0 -188
- package/src/lib/stores/helpers/find-default-remote.ts +0 -3
- package/src/lib/trampoline/trampoline-environment.ts +0 -8
- package/src/models/branch.ts +0 -78
- package/src/models/cherry-pick.ts +0 -12
- package/src/models/clone-options.ts +0 -6
- package/src/models/commit-identity.ts +0 -35
- package/src/models/commit.ts +0 -44
- package/src/models/computed-action.ts +0 -6
- package/src/models/diff/diff-data.ts +0 -78
- package/src/models/diff/diff-line.ts +0 -36
- package/src/models/diff/diff-selection.ts +0 -165
- package/src/models/diff/image-diff.ts +0 -6
- package/src/models/diff/image.ts +0 -8
- package/src/models/diff/index.ts +0 -6
- package/src/models/diff/raw-diff.ts +0 -41
- package/src/models/git-author.ts +0 -16
- package/src/models/manual-conflict-resolution.ts +0 -4
- package/src/models/merge.ts +0 -6
- package/src/models/multi-commit-operation.ts +0 -6
- package/src/models/progress.ts +0 -67
- package/src/models/rebase.ts +0 -20
- package/src/models/remote.ts +0 -10
- package/src/models/repository.ts +0 -16
- package/src/models/stash-entry.ts +0 -25
- package/src/models/status.ts +0 -275
- package/src/models/submodule.ts +0 -13
- package/src/models/worktree.ts +0 -11
- package/tsconfig.json +0 -17
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { DiffLine } from './diff-line'
|
|
2
|
-
|
|
3
|
-
export enum DiffHunkExpansionType {
|
|
4
|
-
None = 'None',
|
|
5
|
-
Up = 'Up',
|
|
6
|
-
Down = 'Down',
|
|
7
|
-
Both = 'Both',
|
|
8
|
-
Short = 'Short',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export class DiffHunk {
|
|
12
|
-
public constructor(
|
|
13
|
-
public readonly header: DiffHunkHeader,
|
|
14
|
-
public readonly lines: ReadonlyArray<DiffLine>,
|
|
15
|
-
public readonly unifiedDiffStart: number,
|
|
16
|
-
public readonly unifiedDiffEnd: number,
|
|
17
|
-
public readonly expansionType: DiffHunkExpansionType
|
|
18
|
-
) {}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export class DiffHunkHeader {
|
|
22
|
-
public constructor(
|
|
23
|
-
public readonly oldStartLine: number,
|
|
24
|
-
public readonly oldLineCount: number,
|
|
25
|
-
public readonly newStartLine: number,
|
|
26
|
-
public readonly newLineCount: number
|
|
27
|
-
) {}
|
|
28
|
-
|
|
29
|
-
public toDiffLineRepresentation() {
|
|
30
|
-
return `@@ -${this.oldStartLine},${this.oldLineCount} +${this.newStartLine},${this.newLineCount} @@`
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface IRawDiff {
|
|
35
|
-
readonly header: string
|
|
36
|
-
readonly contents: string
|
|
37
|
-
readonly hunks: ReadonlyArray<DiffHunk>
|
|
38
|
-
readonly isBinary: boolean
|
|
39
|
-
readonly maxLineNumber: number
|
|
40
|
-
readonly hasHiddenBidiChars: boolean
|
|
41
|
-
}
|
package/src/models/git-author.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export class GitAuthor {
|
|
2
|
-
public static parse(value: string): GitAuthor | null {
|
|
3
|
-
const m = value.match(/^(.*?)\s*<(.+?)>\s*$/)
|
|
4
|
-
if (!m) return null
|
|
5
|
-
return new GitAuthor(m[1], m[2])
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
public constructor(
|
|
9
|
-
public readonly name: string,
|
|
10
|
-
public readonly email: string
|
|
11
|
-
) {}
|
|
12
|
-
|
|
13
|
-
public toString(): string {
|
|
14
|
-
return `${this.name} <${this.email}>`
|
|
15
|
-
}
|
|
16
|
-
}
|
package/src/models/merge.ts
DELETED
package/src/models/progress.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
interface IProgress {
|
|
2
|
-
readonly value: number
|
|
3
|
-
readonly title?: string
|
|
4
|
-
readonly description?: string
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface IGenericProgress extends IProgress {
|
|
8
|
-
kind: 'generic'
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ICheckoutProgress extends IProgress {
|
|
12
|
-
kind: 'checkout'
|
|
13
|
-
readonly target: string
|
|
14
|
-
readonly description: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface IFetchProgress extends IProgress {
|
|
18
|
-
kind: 'fetch'
|
|
19
|
-
readonly remote: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface IPullProgress extends IProgress {
|
|
23
|
-
kind: 'pull'
|
|
24
|
-
readonly remote: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IPushProgress extends IProgress {
|
|
28
|
-
kind: 'push'
|
|
29
|
-
readonly remote: string
|
|
30
|
-
readonly branch: string
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface ICloneProgress extends IProgress {
|
|
34
|
-
kind: 'clone'
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface IRevertProgress extends IProgress {
|
|
38
|
-
kind: 'revert'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface IMultiCommitOperationProgress extends IProgress {
|
|
42
|
-
readonly kind: 'multiCommitOperation'
|
|
43
|
-
readonly currentCommitSummary: string
|
|
44
|
-
readonly position: number
|
|
45
|
-
readonly totalCommitCount: number
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type Progress =
|
|
49
|
-
| IGenericProgress
|
|
50
|
-
| ICheckoutProgress
|
|
51
|
-
| IFetchProgress
|
|
52
|
-
| IPullProgress
|
|
53
|
-
| IPushProgress
|
|
54
|
-
| IRevertProgress
|
|
55
|
-
| IMultiCommitOperationProgress
|
|
56
|
-
|
|
57
|
-
export function clampProgress<T extends Progress>(
|
|
58
|
-
minimum: number,
|
|
59
|
-
maximum: number,
|
|
60
|
-
progressCallback: (progress: T) => void
|
|
61
|
-
): (progress: T) => void {
|
|
62
|
-
return (progress: T) =>
|
|
63
|
-
progressCallback({
|
|
64
|
-
...progress,
|
|
65
|
-
value: minimum + progress.value * (maximum - minimum),
|
|
66
|
-
})
|
|
67
|
-
}
|
package/src/models/rebase.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IMultiCommitOperationProgress } from './progress'
|
|
2
|
-
import { CommitOneLine } from './commit'
|
|
3
|
-
|
|
4
|
-
export type RebaseInternalState = {
|
|
5
|
-
readonly targetBranch: string
|
|
6
|
-
readonly baseBranchTip: string
|
|
7
|
-
readonly originalBranchTip: string
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type RebaseProgressOptions = {
|
|
11
|
-
commits: ReadonlyArray<CommitOneLine>
|
|
12
|
-
progressCallback: (progress: IMultiCommitOperationProgress) => void
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export enum ComputedAction {
|
|
16
|
-
Clean = 'Clean',
|
|
17
|
-
Conflicts = 'Conflicts',
|
|
18
|
-
Invalid = 'Invalid',
|
|
19
|
-
Loading = 'Loading',
|
|
20
|
-
}
|
package/src/models/remote.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface IRemote {
|
|
2
|
-
readonly name: string
|
|
3
|
-
readonly url: string
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export function remoteEquals(x: IRemote | null, y: IRemote | null) {
|
|
7
|
-
if (x === y) return true
|
|
8
|
-
if (x === null || y === null) return false
|
|
9
|
-
return x.name === y.name && x.url === y.url
|
|
10
|
-
}
|
package/src/models/repository.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as Path from 'path'
|
|
2
|
-
|
|
3
|
-
export class Repository {
|
|
4
|
-
public readonly name: string
|
|
5
|
-
|
|
6
|
-
public constructor(
|
|
7
|
-
public readonly path: string,
|
|
8
|
-
public readonly id: number
|
|
9
|
-
) {
|
|
10
|
-
this.name = Path.basename(path)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
public get resolvedGitDir(): string {
|
|
14
|
-
return Path.join(this.path, '.git')
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CommittedFileChange } from './status'
|
|
2
|
-
|
|
3
|
-
export interface IStashEntry {
|
|
4
|
-
readonly name: string
|
|
5
|
-
readonly branchName: string
|
|
6
|
-
readonly stashSha: string
|
|
7
|
-
readonly files: StashedFileChanges
|
|
8
|
-
readonly tree: string
|
|
9
|
-
readonly parents: ReadonlyArray<string>
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum StashedChangesLoadStates {
|
|
13
|
-
NotLoaded = 'NotLoaded',
|
|
14
|
-
Loading = 'Loading',
|
|
15
|
-
Loaded = 'Loaded',
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type StashedFileChanges =
|
|
19
|
-
| {
|
|
20
|
-
readonly kind: StashedChangesLoadStates.NotLoaded | StashedChangesLoadStates.Loading
|
|
21
|
-
}
|
|
22
|
-
| {
|
|
23
|
-
readonly kind: StashedChangesLoadStates.Loaded
|
|
24
|
-
readonly files: ReadonlyArray<CommittedFileChange>
|
|
25
|
-
}
|
package/src/models/status.ts
DELETED
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import { DiffSelection, DiffSelectionType } from './diff'
|
|
2
|
-
|
|
3
|
-
export enum GitStatusEntry {
|
|
4
|
-
Modified = 'M',
|
|
5
|
-
Added = 'A',
|
|
6
|
-
Deleted = 'D',
|
|
7
|
-
Renamed = 'R',
|
|
8
|
-
Copied = 'C',
|
|
9
|
-
Unchanged = '.',
|
|
10
|
-
Untracked = '?',
|
|
11
|
-
Ignored = '!',
|
|
12
|
-
UpdatedButUnmerged = 'U',
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export enum AppFileStatusKind {
|
|
16
|
-
New = 'New',
|
|
17
|
-
Modified = 'Modified',
|
|
18
|
-
Deleted = 'Deleted',
|
|
19
|
-
Copied = 'Copied',
|
|
20
|
-
Renamed = 'Renamed',
|
|
21
|
-
Conflicted = 'Conflicted',
|
|
22
|
-
Untracked = 'Untracked',
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type PlainFileStatus = {
|
|
26
|
-
kind: AppFileStatusKind.New | AppFileStatusKind.Modified | AppFileStatusKind.Deleted
|
|
27
|
-
submoduleStatus?: SubmoduleStatus
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type CopiedOrRenamedFileStatus = {
|
|
31
|
-
kind: AppFileStatusKind.Copied | AppFileStatusKind.Renamed
|
|
32
|
-
oldPath: string
|
|
33
|
-
renameIncludesModifications: boolean
|
|
34
|
-
submoduleStatus?: SubmoduleStatus
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type ConflictsWithMarkers = {
|
|
38
|
-
kind: AppFileStatusKind.Conflicted
|
|
39
|
-
entry: TextConflictEntry
|
|
40
|
-
conflictMarkerCount: number
|
|
41
|
-
submoduleStatus?: SubmoduleStatus
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export type ManualConflict = {
|
|
45
|
-
kind: AppFileStatusKind.Conflicted
|
|
46
|
-
entry: ManualConflictEntry
|
|
47
|
-
submoduleStatus?: SubmoduleStatus
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export type ConflictedFileStatus = ConflictsWithMarkers | ManualConflict
|
|
51
|
-
|
|
52
|
-
export function isConflictedFileStatus(
|
|
53
|
-
appFileStatus: AppFileStatus
|
|
54
|
-
): appFileStatus is ConflictedFileStatus {
|
|
55
|
-
return appFileStatus.kind === AppFileStatusKind.Conflicted
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function isConflictWithMarkers(
|
|
59
|
-
conflictedFileStatus: ConflictedFileStatus
|
|
60
|
-
): conflictedFileStatus is ConflictsWithMarkers {
|
|
61
|
-
return 'conflictMarkerCount' in conflictedFileStatus
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export type UntrackedFileStatus = {
|
|
65
|
-
kind: AppFileStatusKind.Untracked
|
|
66
|
-
submoduleStatus?: SubmoduleStatus
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type AppFileStatus =
|
|
70
|
-
| PlainFileStatus
|
|
71
|
-
| CopiedOrRenamedFileStatus
|
|
72
|
-
| ConflictedFileStatus
|
|
73
|
-
| UntrackedFileStatus
|
|
74
|
-
|
|
75
|
-
export type SubmoduleStatus = {
|
|
76
|
-
readonly commitChanged: boolean
|
|
77
|
-
readonly modifiedChanges: boolean
|
|
78
|
-
readonly untrackedChanges: boolean
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
type OrdinaryEntry = {
|
|
82
|
-
readonly kind: 'ordinary'
|
|
83
|
-
readonly type: 'added' | 'modified' | 'deleted'
|
|
84
|
-
readonly index?: GitStatusEntry
|
|
85
|
-
readonly workingTree?: GitStatusEntry
|
|
86
|
-
readonly submoduleStatus?: SubmoduleStatus
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
type RenamedOrCopiedEntry = {
|
|
90
|
-
readonly kind: 'renamed' | 'copied'
|
|
91
|
-
readonly index?: GitStatusEntry
|
|
92
|
-
readonly workingTree?: GitStatusEntry
|
|
93
|
-
readonly submoduleStatus?: SubmoduleStatus
|
|
94
|
-
readonly renameOrCopyScore?: number
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export enum UnmergedEntrySummary {
|
|
98
|
-
AddedByUs = 'added-by-us',
|
|
99
|
-
DeletedByUs = 'deleted-by-us',
|
|
100
|
-
AddedByThem = 'added-by-them',
|
|
101
|
-
DeletedByThem = 'deleted-by-them',
|
|
102
|
-
BothDeleted = 'both-deleted',
|
|
103
|
-
BothAdded = 'both-added',
|
|
104
|
-
BothModified = 'both-modified',
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
type TextConflictDetails =
|
|
108
|
-
| {
|
|
109
|
-
readonly action: UnmergedEntrySummary.BothAdded
|
|
110
|
-
readonly us: GitStatusEntry.Added
|
|
111
|
-
readonly them: GitStatusEntry.Added
|
|
112
|
-
}
|
|
113
|
-
| {
|
|
114
|
-
readonly action: UnmergedEntrySummary.BothModified
|
|
115
|
-
readonly us: GitStatusEntry.UpdatedButUnmerged
|
|
116
|
-
readonly them: GitStatusEntry.UpdatedButUnmerged
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
type TextConflictEntry = {
|
|
120
|
-
readonly kind: 'conflicted'
|
|
121
|
-
readonly submoduleStatus?: SubmoduleStatus
|
|
122
|
-
} & TextConflictDetails
|
|
123
|
-
|
|
124
|
-
type ManualConflictDetails = {
|
|
125
|
-
readonly submoduleStatus?: SubmoduleStatus
|
|
126
|
-
} & (
|
|
127
|
-
| { readonly action: UnmergedEntrySummary.BothAdded; readonly us: GitStatusEntry.Added; readonly them: GitStatusEntry.Added }
|
|
128
|
-
| { readonly action: UnmergedEntrySummary.BothModified; readonly us: GitStatusEntry.UpdatedButUnmerged; readonly them: GitStatusEntry.UpdatedButUnmerged }
|
|
129
|
-
| { readonly action: UnmergedEntrySummary.AddedByUs; readonly us: GitStatusEntry.Added; readonly them: GitStatusEntry.UpdatedButUnmerged }
|
|
130
|
-
| { readonly action: UnmergedEntrySummary.DeletedByThem; readonly us: GitStatusEntry.UpdatedButUnmerged; readonly them: GitStatusEntry.Deleted }
|
|
131
|
-
| { readonly action: UnmergedEntrySummary.AddedByThem; readonly us: GitStatusEntry.UpdatedButUnmerged; readonly them: GitStatusEntry.Added }
|
|
132
|
-
| { readonly action: UnmergedEntrySummary.DeletedByUs; readonly us: GitStatusEntry.Deleted; readonly them: GitStatusEntry.UpdatedButUnmerged }
|
|
133
|
-
| { readonly action: UnmergedEntrySummary.BothDeleted; readonly us: GitStatusEntry.Deleted; readonly them: GitStatusEntry.Deleted }
|
|
134
|
-
)
|
|
135
|
-
|
|
136
|
-
type ManualConflictEntry = {
|
|
137
|
-
readonly kind: 'conflicted'
|
|
138
|
-
readonly submoduleStatus?: SubmoduleStatus
|
|
139
|
-
} & ManualConflictDetails
|
|
140
|
-
|
|
141
|
-
export type UnmergedEntry = TextConflictEntry | ManualConflictEntry
|
|
142
|
-
|
|
143
|
-
type UntrackedEntry = {
|
|
144
|
-
readonly kind: 'untracked'
|
|
145
|
-
readonly submoduleStatus?: SubmoduleStatus
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export type FileEntry =
|
|
149
|
-
| OrdinaryEntry
|
|
150
|
-
| RenamedOrCopiedEntry
|
|
151
|
-
| UnmergedEntry
|
|
152
|
-
| UntrackedEntry
|
|
153
|
-
|
|
154
|
-
export class FileChange {
|
|
155
|
-
public readonly id: string
|
|
156
|
-
|
|
157
|
-
public constructor(
|
|
158
|
-
public readonly path: string,
|
|
159
|
-
public readonly status: AppFileStatus
|
|
160
|
-
) {
|
|
161
|
-
if (
|
|
162
|
-
status.kind === AppFileStatusKind.Renamed ||
|
|
163
|
-
status.kind === AppFileStatusKind.Copied
|
|
164
|
-
) {
|
|
165
|
-
this.id = `${status.kind}+${path}+${status.oldPath}`
|
|
166
|
-
} else {
|
|
167
|
-
this.id = `${status.kind}+${path}`
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
public isDeleted(): boolean {
|
|
172
|
-
return this.status.kind === AppFileStatusKind.Deleted
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
public isNew(): boolean {
|
|
176
|
-
return this.status.kind === AppFileStatusKind.New
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
public isModified(): boolean {
|
|
180
|
-
return this.status.kind === AppFileStatusKind.Modified
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
public isUntracked(): boolean {
|
|
184
|
-
return this.status.kind === AppFileStatusKind.Untracked
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export class WorkingDirectoryFileChange extends FileChange {
|
|
189
|
-
public constructor(
|
|
190
|
-
path: string,
|
|
191
|
-
status: AppFileStatus,
|
|
192
|
-
public readonly selection: DiffSelection
|
|
193
|
-
) {
|
|
194
|
-
super(path, status)
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
public withIncludeAll(include: boolean): WorkingDirectoryFileChange {
|
|
198
|
-
const newSelection = include
|
|
199
|
-
? this.selection.withSelectAll()
|
|
200
|
-
: this.selection.withSelectNone()
|
|
201
|
-
return this.withSelection(newSelection)
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
public withSelection(selection: DiffSelection): WorkingDirectoryFileChange {
|
|
205
|
-
return new WorkingDirectoryFileChange(this.path, this.status, selection)
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
public isIncludedInCommit(): boolean {
|
|
209
|
-
return this.selection.getSelectionType() === DiffSelectionType.All
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
public isExcludedFromCommit(): boolean {
|
|
213
|
-
return this.selection.getSelectionType() === DiffSelectionType.None
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export class CommittedFileChange extends FileChange {
|
|
218
|
-
public constructor(
|
|
219
|
-
path: string,
|
|
220
|
-
status: AppFileStatus,
|
|
221
|
-
public readonly commitish: string,
|
|
222
|
-
public readonly parentCommitish: string
|
|
223
|
-
) {
|
|
224
|
-
super(path, status)
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export class WorkingDirectoryStatus {
|
|
229
|
-
public static fromFiles(
|
|
230
|
-
files: ReadonlyArray<WorkingDirectoryFileChange>
|
|
231
|
-
): WorkingDirectoryStatus {
|
|
232
|
-
return new WorkingDirectoryStatus(files, getIncludeAllState(files))
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
private readonly fileIxById = new Map<string, number>()
|
|
236
|
-
|
|
237
|
-
private constructor(
|
|
238
|
-
public readonly files: ReadonlyArray<WorkingDirectoryFileChange>,
|
|
239
|
-
public readonly includeAll: boolean | null = true
|
|
240
|
-
) {
|
|
241
|
-
files.forEach((f, ix) => this.fileIxById.set(f.id, ix))
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
public withIncludeAllFiles(includeAll: boolean): WorkingDirectoryStatus {
|
|
245
|
-
const newFiles = this.files.map(f => f.withIncludeAll(includeAll))
|
|
246
|
-
return new WorkingDirectoryStatus(newFiles, includeAll)
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
public findFileWithID(id: string): WorkingDirectoryFileChange | null {
|
|
250
|
-
const ix = this.fileIxById.get(id)
|
|
251
|
-
return ix !== undefined ? this.files[ix] || null : null
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
public findFileIndexByID(id: string): number {
|
|
255
|
-
const ix = this.fileIxById.get(id)
|
|
256
|
-
return ix !== undefined ? ix : -1
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
function getIncludeAllState(
|
|
261
|
-
files: ReadonlyArray<WorkingDirectoryFileChange>
|
|
262
|
-
): boolean | null {
|
|
263
|
-
if (!files.length) return true
|
|
264
|
-
|
|
265
|
-
const allSelected = files.every(
|
|
266
|
-
f => f.selection.getSelectionType() === DiffSelectionType.All
|
|
267
|
-
)
|
|
268
|
-
const noneSelected = files.every(
|
|
269
|
-
f => f.selection.getSelectionType() === DiffSelectionType.None
|
|
270
|
-
)
|
|
271
|
-
|
|
272
|
-
if (allSelected) return true
|
|
273
|
-
if (noneSelected) return false
|
|
274
|
-
return null
|
|
275
|
-
}
|
package/src/models/submodule.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type SubmoduleEntry = {
|
|
2
|
-
readonly path: string
|
|
3
|
-
readonly url: string
|
|
4
|
-
readonly describe?: string
|
|
5
|
-
readonly sha: string
|
|
6
|
-
readonly status: SubmoduleStatus
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type SubmoduleStatus = {
|
|
10
|
-
readonly commitChanged: boolean
|
|
11
|
-
readonly modifiedChanges: boolean
|
|
12
|
-
readonly untrackedChanges: boolean
|
|
13
|
-
}
|
package/src/models/worktree.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type WorktreeType = 'main' | 'linked'
|
|
2
|
-
|
|
3
|
-
export type WorktreeEntry = {
|
|
4
|
-
readonly path: string
|
|
5
|
-
readonly head: string
|
|
6
|
-
readonly branch: string | null
|
|
7
|
-
readonly isDetached: boolean
|
|
8
|
-
readonly type: WorktreeType
|
|
9
|
-
readonly isLocked: boolean
|
|
10
|
-
readonly isPrunable: boolean
|
|
11
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"forceConsistentCasingInFileNames": true,
|
|
10
|
-
"declaration": true,
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true
|
|
14
|
-
},
|
|
15
|
-
"include": ["src/**/*.ts"],
|
|
16
|
-
"exclude": ["node_modules"]
|
|
17
|
-
}
|