git-chopstick-core 0.1.1 → 0.1.2
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/dist/git/checkout-index.js +29 -0
- 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/dist/git/interpret-trailers.d.ts +88 -0
- 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/dist/git/push-terminal-chunk.d.ts +19 -0
- 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/dist/git/show.js +59 -0
- 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/dist/git/update-ref.js +32 -0
- package/dist/git/update-ref.js.map +1 -0
- package/dist/git/var.d.ts +18 -0
- package/dist/git/var.js +33 -0
- 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 +137 -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 +13 -4
- package/src/git/add.ts +3 -3
- package/src/git/apply.ts +8 -8
- package/src/git/authentication.ts +3 -2
- package/src/git/branch.ts +10 -10
- package/src/git/checkout-index.ts +2 -2
- package/src/git/checkout.ts +12 -12
- package/src/git/cherry-pick.ts +16 -16
- package/src/git/clean.ts +2 -2
- package/src/git/clone.ts +6 -6
- package/src/git/commit.ts +7 -7
- package/src/git/config.ts +2 -2
- package/src/git/core.ts +8 -8
- package/src/git/credential.ts +1 -1
- package/src/git/diff-check.ts +1 -1
- package/src/git/diff-index.ts +2 -2
- package/src/git/diff.ts +18 -18
- package/src/git/environment.ts +5 -5
- package/src/git/fetch.ts +7 -7
- package/src/git/for-each-ref.ts +5 -5
- package/src/git/format-patch.ts +3 -3
- package/src/git/git-delimiter-parser.ts +1 -1
- package/src/git/gitignore.ts +2 -2
- package/src/git/index.ts +46 -36
- package/src/git/init.ts +2 -2
- package/src/git/interpret-trailers.ts +3 -3
- package/src/git/lfs.ts +2 -2
- package/src/git/log.ts +8 -8
- package/src/git/merge-tree.ts +5 -5
- package/src/git/merge.ts +5 -5
- package/src/git/multi-operation-terminal-output.ts +3 -3
- package/src/git/pull.ts +7 -7
- package/src/git/push-terminal-chunk.ts +1 -1
- package/src/git/push.ts +7 -7
- package/src/git/rebase.ts +16 -16
- package/src/git/reflog.ts +2 -2
- package/src/git/refs.ts +2 -2
- package/src/git/remote.ts +6 -6
- package/src/git/reorder.ts +7 -7
- package/src/git/reset.ts +3 -3
- package/src/git/rev-list.ts +5 -5
- package/src/git/rev-parse.ts +2 -2
- package/src/git/revert.ts +8 -8
- package/src/git/rm.ts +3 -3
- package/src/git/show.ts +4 -4
- package/src/git/spawn.ts +3 -3
- package/src/git/squash.ts +7 -7
- package/src/git/stage.ts +7 -7
- package/src/git/stash.ts +10 -10
- package/src/git/status.ts +13 -13
- package/src/git/submodule.ts +9 -9
- package/src/git/tag.ts +4 -4
- package/src/git/update-index.ts +5 -5
- package/src/git/update-ref.ts +2 -2
- package/src/git/var.ts +3 -3
- package/src/git/worktree-include.ts +3 -3
- package/src/git/worktree.ts +4 -4
- package/src/index.ts +9 -21
- package/src/lib/diff-parser.ts +2 -2
- package/src/lib/get-old-path.ts +1 -1
- package/src/lib/git/environment.ts +1 -1
- package/src/lib/patch-formatter.ts +3 -3
- package/src/lib/progress/from-process.ts +1 -1
- package/src/lib/progress/index.ts +1 -1
- package/src/lib/status-parser.ts +2 -2
- package/src/models/branch.ts +1 -1
- package/src/models/cherry-pick.ts +2 -2
- package/src/models/commit.ts +1 -1
- package/src/models/diff/diff-data.ts +3 -3
- package/src/models/diff/index.ts +6 -6
- package/src/models/diff/raw-diff.ts +1 -1
- package/src/models/index.ts +36 -0
- package/src/models/rebase.ts +2 -2
- package/src/models/stash-entry.ts +1 -1
- package/src/models/status.ts +1 -1
- package/examples/get-status.ts +0 -84
- package/tsconfig.json +0 -17
package/src/git/index.ts
CHANGED
|
@@ -1,36 +1,46 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './
|
|
35
|
-
export * from './
|
|
36
|
-
export * from './
|
|
1
|
+
export * from './add.js'
|
|
2
|
+
export * from './apply.js'
|
|
3
|
+
export * from './branch.js'
|
|
4
|
+
export * from './checkout.js'
|
|
5
|
+
export * from './checkout-index.js'
|
|
6
|
+
export * from './cherry-pick.js'
|
|
7
|
+
export * from './clean.js'
|
|
8
|
+
export * from './clone.js'
|
|
9
|
+
export * from './commit.js'
|
|
10
|
+
export * from './config.js'
|
|
11
|
+
export * from './core.js'
|
|
12
|
+
export * from './description.js'
|
|
13
|
+
export * from './diff.js'
|
|
14
|
+
export * from './diff-index.js'
|
|
15
|
+
export * from './fetch.js'
|
|
16
|
+
export * from './for-each-ref.js'
|
|
17
|
+
export * from './format-patch.js'
|
|
18
|
+
export * from './gitignore.js'
|
|
19
|
+
export * from './init.js'
|
|
20
|
+
export * from './interpret-trailers.js'
|
|
21
|
+
export * from './lfs.js'
|
|
22
|
+
export * from './log.js'
|
|
23
|
+
export * from './merge.js'
|
|
24
|
+
export * from './merge-tree.js'
|
|
25
|
+
export * from './pull.js'
|
|
26
|
+
export * from './push.js'
|
|
27
|
+
export * from './rebase.js'
|
|
28
|
+
export * from './reflog.js'
|
|
29
|
+
export * from './refs.js'
|
|
30
|
+
export * from './remote.js'
|
|
31
|
+
export * from './reorder.js'
|
|
32
|
+
export * from './reset.js'
|
|
33
|
+
export * from './rev-list.js'
|
|
34
|
+
export * from './rev-parse.js'
|
|
35
|
+
export * from './rm.js'
|
|
36
|
+
export * from './squash.js'
|
|
37
|
+
export * from './stage.js'
|
|
38
|
+
export * from './stash.js'
|
|
39
|
+
export * from './status.js'
|
|
40
|
+
export * from './submodule.js'
|
|
41
|
+
export * from './tag.js'
|
|
42
|
+
export * from './update-index.js'
|
|
43
|
+
export * from './update-ref.js'
|
|
44
|
+
export * from './var.js'
|
|
45
|
+
export * from './worktree.js'
|
|
46
|
+
export * from './worktree-include.js'
|
package/src/git/init.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getDefaultBranch } from '../lib/helpers/default-branch'
|
|
2
|
-
import { git } from './core'
|
|
1
|
+
import { getDefaultBranch } from '../lib/helpers/default-branch.js'
|
|
2
|
+
import { git } from './core.js'
|
|
3
3
|
|
|
4
4
|
/** Init a new git repository in the given path. */
|
|
5
5
|
export async function initGitRepository(path: string): Promise<void> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { git } from './core'
|
|
2
|
-
import { Repository } from '../models/repository'
|
|
3
|
-
import { getConfigValue } from './config'
|
|
1
|
+
import { git } from './core.js'
|
|
2
|
+
import { Repository } from '../models/repository.js'
|
|
3
|
+
import { getConfigValue } from './config.js'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A representation of a Git commit message trailer.
|
package/src/git/lfs.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { git } from './core'
|
|
2
|
-
import { Repository } from '../models/repository'
|
|
1
|
+
import { git } from './core.js'
|
|
2
|
+
import { Repository } from '../models/repository.js'
|
|
3
3
|
|
|
4
4
|
/** Install the global LFS filters. */
|
|
5
5
|
export async function installGlobalLFSFilters(force: boolean): Promise<void> {
|
package/src/git/log.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { git } from './core'
|
|
1
|
+
import { git } from './core.js'
|
|
2
2
|
import {
|
|
3
3
|
CommittedFileChange,
|
|
4
4
|
AppFileStatusKind,
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
UntrackedFileStatus,
|
|
8
8
|
AppFileStatus,
|
|
9
9
|
SubmoduleStatus,
|
|
10
|
-
} from '../models/status'
|
|
11
|
-
import { Repository } from '../models/repository'
|
|
12
|
-
import { Commit } from '../models/commit'
|
|
13
|
-
import { CommitIdentity } from '../models/commit-identity'
|
|
14
|
-
import { parseRawUnfoldedTrailers } from './interpret-trailers'
|
|
15
|
-
import { createLogParser } from './git-delimiter-parser'
|
|
16
|
-
import { forceUnwrap } from '../lib/fatal-error'
|
|
10
|
+
} from '../models/status.js'
|
|
11
|
+
import { Repository } from '../models/repository.js'
|
|
12
|
+
import { Commit } from '../models/commit.js'
|
|
13
|
+
import { CommitIdentity } from '../models/commit-identity.js'
|
|
14
|
+
import { parseRawUnfoldedTrailers } from './interpret-trailers.js'
|
|
15
|
+
import { createLogParser } from './git-delimiter-parser.js'
|
|
16
|
+
import { forceUnwrap } from '../lib/fatal-error.js'
|
|
17
17
|
import assert from 'assert'
|
|
18
18
|
|
|
19
19
|
// File mode 160000 is used by git specifically for submodules:
|
package/src/git/merge-tree.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Branch } from '../models/branch'
|
|
2
|
-
import { ComputedAction } from '../models/computed-action'
|
|
3
|
-
import { Repository } from '../models/repository'
|
|
4
|
-
import { git, isGitError } from './core'
|
|
5
|
-
import { GitError } from './exec'
|
|
1
|
+
import { Branch } from '../models/branch.js'
|
|
2
|
+
import { ComputedAction } from '../models/computed-action.js'
|
|
3
|
+
import { Repository } from '../models/repository.js'
|
|
4
|
+
import { git, isGitError } from './core.js'
|
|
5
|
+
import { GitError } from './exec.js'
|
|
6
6
|
|
|
7
7
|
type MergeTreeResult =
|
|
8
8
|
| { kind: ComputedAction.Clean }
|
package/src/git/merge.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { join } from 'path'
|
|
2
|
-
import { git, HookCallbackOptions } from './core'
|
|
3
|
-
import { GitError } from './exec'
|
|
4
|
-
import { Repository } from '../models/repository'
|
|
5
|
-
import { pathExists } from '../lib/path-exists'
|
|
6
|
-
import { createMultiOperationTerminalOutputCallback } from './multi-operation-terminal-output'
|
|
2
|
+
import { git, HookCallbackOptions } from './core.js'
|
|
3
|
+
import { GitError } from './exec.js'
|
|
4
|
+
import { Repository } from '../models/repository.js'
|
|
5
|
+
import { pathExists } from '../lib/path-exists.js'
|
|
6
|
+
import { createMultiOperationTerminalOutputCallback } from './multi-operation-terminal-output.js'
|
|
7
7
|
|
|
8
8
|
export enum MergeResult {
|
|
9
9
|
/** The merge completed successfully */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import noop from '../lib/noop'
|
|
1
|
+
import noop from '../lib/noop.js'
|
|
2
2
|
import {
|
|
3
3
|
TerminalOutput,
|
|
4
4
|
TerminalOutputCallback,
|
|
5
5
|
TerminalOutputListener,
|
|
6
|
-
} from './core'
|
|
7
|
-
import { pushTerminalChunk } from './push-terminal-chunk'
|
|
6
|
+
} from './core.js'
|
|
7
|
+
import { pushTerminalChunk } from './push-terminal-chunk.js'
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates a callback that aggregates terminal output from multiple Git
|
package/src/git/pull.ts
CHANGED
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
IGitStringExecutionOptions,
|
|
6
6
|
TerminalOutput,
|
|
7
7
|
TerminalOutputCallback,
|
|
8
|
-
} from './core'
|
|
9
|
-
import { Repository } from '../models/repository'
|
|
10
|
-
import { IPullProgress } from '../models/progress'
|
|
11
|
-
import { PullProgressParser, executionOptionsWithProgress } from '../lib/progress'
|
|
12
|
-
import { IRemote } from '../models/remote'
|
|
13
|
-
import { envForRemoteOperation } from './environment'
|
|
14
|
-
import { getConfigValue } from './config'
|
|
8
|
+
} from './core.js'
|
|
9
|
+
import { Repository } from '../models/repository.js'
|
|
10
|
+
import { IPullProgress } from '../models/progress.js'
|
|
11
|
+
import { PullProgressParser, executionOptionsWithProgress } from '../lib/progress/index.js'
|
|
12
|
+
import { IRemote } from '../models/remote.js'
|
|
13
|
+
import { envForRemoteOperation } from './environment.js'
|
|
14
|
+
import { getConfigValue } from './config.js'
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Pull from the specified remote.
|
package/src/git/push.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { git, HookCallbackOptions, IGitStringExecutionOptions } from './core'
|
|
2
|
-
import { Repository } from '../models/repository'
|
|
3
|
-
import { IPushProgress } from '../models/progress'
|
|
4
|
-
import { PushProgressParser, executionOptionsWithProgress } from '../lib/progress'
|
|
5
|
-
import { IRemote } from '../models/remote'
|
|
6
|
-
import { envForRemoteOperation } from './environment'
|
|
7
|
-
import { Branch } from '../models/branch'
|
|
1
|
+
import { git, HookCallbackOptions, IGitStringExecutionOptions } from './core.js'
|
|
2
|
+
import { Repository } from '../models/repository.js'
|
|
3
|
+
import { IPushProgress } from '../models/progress.js'
|
|
4
|
+
import { PushProgressParser, executionOptionsWithProgress } from '../lib/progress/index.js'
|
|
5
|
+
import { IRemote } from '../models/remote.js'
|
|
6
|
+
import { envForRemoteOperation } from './environment.js'
|
|
7
|
+
import { Branch } from '../models/branch.js'
|
|
8
8
|
|
|
9
9
|
export type PushOptions = {
|
|
10
10
|
/**
|
package/src/git/rebase.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ChildProcess } from 'child_process'
|
|
2
|
-
import { GitError } from './exec'
|
|
2
|
+
import { GitError } from './exec.js'
|
|
3
3
|
import byline from 'byline'
|
|
4
4
|
|
|
5
|
-
import { Repository } from '../models/repository'
|
|
6
|
-
import { RebaseInternalState, RebaseProgressOptions } from '../models/rebase'
|
|
7
|
-
import { IMultiCommitOperationProgress } from '../models/progress'
|
|
5
|
+
import { Repository } from '../models/repository.js'
|
|
6
|
+
import { RebaseInternalState, RebaseProgressOptions } from '../models/rebase.js'
|
|
7
|
+
import { IMultiCommitOperationProgress } from '../models/progress.js'
|
|
8
8
|
import {
|
|
9
9
|
WorkingDirectoryFileChange,
|
|
10
10
|
AppFileStatusKind,
|
|
11
|
-
} from '../models/status'
|
|
12
|
-
import { ManualConflictResolution } from '../models/manual-conflict-resolution'
|
|
13
|
-
import { Commit, CommitOneLine } from '../models/commit'
|
|
11
|
+
} from '../models/status.js'
|
|
12
|
+
import { ManualConflictResolution } from '../models/manual-conflict-resolution.js'
|
|
13
|
+
import { Commit, CommitOneLine } from '../models/commit.js'
|
|
14
14
|
|
|
15
|
-
import { merge } from '../lib/merge'
|
|
16
|
-
import { formatRebaseValue } from '../lib/rebase'
|
|
15
|
+
import { merge } from '../lib/merge.js'
|
|
16
|
+
import { formatRebaseValue } from '../lib/rebase.js'
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
19
|
git,
|
|
@@ -22,15 +22,15 @@ import {
|
|
|
22
22
|
IGitStringExecutionOptions,
|
|
23
23
|
IGitStringResult,
|
|
24
24
|
HookCallbackOptions,
|
|
25
|
-
} from './core'
|
|
26
|
-
import { stageManualConflictResolution } from './stage'
|
|
27
|
-
import { stageFiles } from './update-index'
|
|
28
|
-
import { getStatus } from './status'
|
|
29
|
-
import { getCommitsBetweenCommits } from './rev-list'
|
|
30
|
-
import { Branch } from '../models/branch'
|
|
25
|
+
} from './core.js'
|
|
26
|
+
import { stageManualConflictResolution } from './stage.js'
|
|
27
|
+
import { stageFiles } from './update-index.js'
|
|
28
|
+
import { getStatus } from './status.js'
|
|
29
|
+
import { getCommitsBetweenCommits } from './rev-list.js'
|
|
30
|
+
import { Branch } from '../models/branch.js'
|
|
31
31
|
import { join } from 'path'
|
|
32
32
|
import { readFile } from 'fs/promises'
|
|
33
|
-
import { pathExists } from '../lib/path-exists'
|
|
33
|
+
import { pathExists } from '../lib/path-exists.js'
|
|
34
34
|
|
|
35
35
|
/** The app-specific results from attempting to rebase a repository */
|
|
36
36
|
export enum RebaseResult {
|
package/src/git/reflog.ts
CHANGED
package/src/git/refs.ts
CHANGED
package/src/git/remote.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { git } from './core'
|
|
2
|
-
import { GitError } from './exec'
|
|
1
|
+
import { git } from './core.js'
|
|
2
|
+
import { GitError } from './exec.js'
|
|
3
3
|
|
|
4
|
-
import { Repository } from '../models/repository'
|
|
5
|
-
import { IRemote } from '../models/remote'
|
|
6
|
-
import { envForRemoteOperation } from './environment'
|
|
7
|
-
import { getSymbolicRef } from './refs'
|
|
4
|
+
import { Repository } from '../models/repository.js'
|
|
5
|
+
import { IRemote } from '../models/remote.js'
|
|
6
|
+
import { envForRemoteOperation } from './environment.js'
|
|
7
|
+
import { getSymbolicRef } from './refs.js'
|
|
8
8
|
import memoizeOne from 'memoize-one'
|
|
9
9
|
|
|
10
10
|
/**
|
package/src/git/reorder.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { appendFile, rm } from 'fs/promises'
|
|
2
|
-
import { getCommits, revRange } from '.'
|
|
3
|
-
import { Commit } from '../models/commit'
|
|
4
|
-
import { MultiCommitOperationKind } from '../models/multi-commit-operation'
|
|
5
|
-
import { IMultiCommitOperationProgress } from '../models/progress'
|
|
6
|
-
import { Repository } from '../models/repository'
|
|
7
|
-
import { getTempFilePath } from '../lib/file-system'
|
|
8
|
-
import { rebaseInteractive, RebaseResult } from './rebase'
|
|
2
|
+
import { getCommits, revRange } from './index.js'
|
|
3
|
+
import { Commit } from '../models/commit.js'
|
|
4
|
+
import { MultiCommitOperationKind } from '../models/multi-commit-operation.js'
|
|
5
|
+
import { IMultiCommitOperationProgress } from '../models/progress.js'
|
|
6
|
+
import { Repository } from '../models/repository.js'
|
|
7
|
+
import { getTempFilePath } from '../lib/file-system.js'
|
|
8
|
+
import { rebaseInteractive, RebaseResult } from './rebase.js'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Reorders provided commits by calling interactive rebase.
|
package/src/git/reset.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { git } from './core'
|
|
2
|
-
import { Repository } from '../models/repository'
|
|
3
|
-
import { assertNever } from '../lib/fatal-error'
|
|
1
|
+
import { git } from './core.js'
|
|
2
|
+
import { Repository } from '../models/repository.js'
|
|
3
|
+
import { assertNever } from '../lib/fatal-error.js'
|
|
4
4
|
|
|
5
5
|
/** The reset modes which are supported. */
|
|
6
6
|
export const enum GitResetMode {
|
package/src/git/rev-list.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { GitError } from './exec'
|
|
2
|
-
import { git } from './core'
|
|
3
|
-
import { Repository } from '../models/repository'
|
|
4
|
-
import { Branch, BranchType, IAheadBehind } from '../models/branch'
|
|
5
|
-
import { CommitOneLine } from '../models/commit'
|
|
1
|
+
import { GitError } from './exec.js'
|
|
2
|
+
import { git } from './core.js'
|
|
3
|
+
import { Repository } from '../models/repository.js'
|
|
4
|
+
import { Branch, BranchType, IAheadBehind } from '../models/branch.js'
|
|
5
|
+
import { CommitOneLine } from '../models/commit.js'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Convert two refs into the Git range syntax representing the set of commits
|
package/src/git/rev-parse.ts
CHANGED
package/src/git/revert.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { git, IGitStringExecutionOptions } from './core'
|
|
1
|
+
import { git, IGitStringExecutionOptions } from './core.js'
|
|
2
2
|
|
|
3
|
-
import { Repository } from '../models/repository'
|
|
4
|
-
import { Commit } from '../models/commit'
|
|
5
|
-
import { IRevertProgress } from '../models/progress'
|
|
3
|
+
import { Repository } from '../models/repository.js'
|
|
4
|
+
import { Commit } from '../models/commit.js'
|
|
5
|
+
import { IRevertProgress } from '../models/progress.js'
|
|
6
6
|
|
|
7
|
-
import { executionOptionsWithProgress } from '../lib/progress/from-process'
|
|
8
|
-
import { RevertProgressParser } from '../lib/progress/revert'
|
|
7
|
+
import { executionOptionsWithProgress } from '../lib/progress/from-process.js'
|
|
8
|
+
import { RevertProgressParser } from '../lib/progress/revert.js'
|
|
9
9
|
import {
|
|
10
10
|
envForRemoteOperation,
|
|
11
11
|
getFallbackUrlForProxyResolve,
|
|
12
|
-
} from './environment'
|
|
13
|
-
import { IRemote } from '../models/remote'
|
|
12
|
+
} from './environment.js'
|
|
13
|
+
import { IRemote } from '../models/remote.js'
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Creates a new commit that reverts the changes of a previous commit
|
package/src/git/rm.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { git } from './core'
|
|
2
|
-
import { Repository } from '../models/repository'
|
|
3
|
-
import { WorkingDirectoryFileChange } from '../models/status'
|
|
1
|
+
import { git } from './core.js'
|
|
2
|
+
import { Repository } from '../models/repository.js'
|
|
3
|
+
import { WorkingDirectoryFileChange } from '../models/status.js'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Remove all files from the index
|
package/src/git/show.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { git, isMaxBufferExceededError } from './core'
|
|
1
|
+
import { git, isMaxBufferExceededError } from './core.js'
|
|
2
2
|
|
|
3
|
-
import { Repository } from '../models/repository'
|
|
4
|
-
import { GitError } from './exec'
|
|
5
|
-
import { coerceToBuffer } from './coerce-to-buffer'
|
|
3
|
+
import { Repository } from '../models/repository.js'
|
|
4
|
+
import { GitError } from './exec.js'
|
|
5
|
+
import { coerceToBuffer } from './coerce-to-buffer.js'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Retrieve the binary contents of a blob from the repository at a given
|
package/src/git/spawn.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { spawnGit as spawn, IGitSpawnOptions } from './exec'
|
|
2
|
-
import * as GitPerf from '../lib/git-perf'
|
|
3
|
-
import { withTrampolineEnv } from '../lib/trampoline/trampoline-environment'
|
|
1
|
+
import { spawnGit as spawn, IGitSpawnOptions } from './exec.js'
|
|
2
|
+
import * as GitPerf from '../lib/git-perf.js'
|
|
3
|
+
import { withTrampolineEnv } from '../lib/trampoline/trampoline-environment.js'
|
|
4
4
|
|
|
5
5
|
type SpawnOptions = IGitSpawnOptions & {
|
|
6
6
|
/**
|
package/src/git/squash.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { appendFile, rm, writeFile } from 'fs/promises'
|
|
2
|
-
import { getCommits, revRange } from '.'
|
|
3
|
-
import { Commit } from '../models/commit'
|
|
4
|
-
import { MultiCommitOperationKind } from '../models/multi-commit-operation'
|
|
5
|
-
import { IMultiCommitOperationProgress } from '../models/progress'
|
|
6
|
-
import { Repository } from '../models/repository'
|
|
7
|
-
import { getTempFilePath } from '../lib/file-system'
|
|
8
|
-
import { rebaseInteractive, RebaseResult } from './rebase'
|
|
2
|
+
import { getCommits, revRange } from './index.js'
|
|
3
|
+
import { Commit } from '../models/commit.js'
|
|
4
|
+
import { MultiCommitOperationKind } from '../models/multi-commit-operation.js'
|
|
5
|
+
import { IMultiCommitOperationProgress } from '../models/progress.js'
|
|
6
|
+
import { Repository } from '../models/repository.js'
|
|
7
|
+
import { getTempFilePath } from '../lib/file-system.js'
|
|
8
|
+
import { rebaseInteractive, RebaseResult } from './rebase.js'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Squashes provided commits by calling interactive rebase.
|
package/src/git/stage.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Repository } from '../models/repository'
|
|
1
|
+
import { Repository } from '../models/repository.js'
|
|
2
2
|
import {
|
|
3
3
|
WorkingDirectoryFileChange,
|
|
4
4
|
isConflictedFileStatus,
|
|
5
5
|
GitStatusEntry,
|
|
6
6
|
isConflictWithMarkers,
|
|
7
|
-
} from '../models/status'
|
|
8
|
-
import { ManualConflictResolution } from '../models/manual-conflict-resolution'
|
|
9
|
-
import { assertNever } from '../lib/fatal-error'
|
|
10
|
-
import { removeConflictedFile } from './rm'
|
|
11
|
-
import { checkoutConflictedFile } from './checkout'
|
|
12
|
-
import { addConflictedFile } from './add'
|
|
7
|
+
} from '../models/status.js'
|
|
8
|
+
import { ManualConflictResolution } from '../models/manual-conflict-resolution.js'
|
|
9
|
+
import { assertNever } from '../lib/fatal-error.js'
|
|
10
|
+
import { removeConflictedFile } from './rm.js'
|
|
11
|
+
import { checkoutConflictedFile } from './checkout.js'
|
|
12
|
+
import { addConflictedFile } from './add.js'
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Stages a file with the given manual resolution method. Useful for resolving binary conflicts at commit-time.
|
package/src/git/stash.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { GitError as DugiteError } from './exec'
|
|
2
|
-
import { git, GitError } from './core'
|
|
3
|
-
import { Repository } from '../models/repository'
|
|
1
|
+
import { GitError as DugiteError } from './exec.js'
|
|
2
|
+
import { git, GitError } from './core.js'
|
|
3
|
+
import { Repository } from '../models/repository.js'
|
|
4
4
|
import {
|
|
5
5
|
IStashEntry,
|
|
6
6
|
StashedChangesLoadStates,
|
|
7
7
|
StashedFileChanges,
|
|
8
|
-
} from '../models/stash-entry'
|
|
8
|
+
} from '../models/stash-entry.js'
|
|
9
9
|
import {
|
|
10
10
|
WorkingDirectoryFileChange,
|
|
11
11
|
CommittedFileChange,
|
|
12
|
-
} from '../models/status'
|
|
13
|
-
import { parseRawLogWithNumstat } from './log'
|
|
14
|
-
import { stageFiles } from './update-index'
|
|
15
|
-
import { Branch } from '../models/branch'
|
|
16
|
-
import { createLogParser } from './git-delimiter-parser'
|
|
17
|
-
import { coerceToString } from './coerce-to-string'
|
|
12
|
+
} from '../models/status.js'
|
|
13
|
+
import { parseRawLogWithNumstat } from './log.js'
|
|
14
|
+
import { stageFiles } from './update-index.js'
|
|
15
|
+
import { Branch } from '../models/branch.js'
|
|
16
|
+
import { createLogParser } from './git-delimiter-parser.js'
|
|
17
|
+
import { coerceToString } from './coerce-to-string.js'
|
|
18
18
|
|
|
19
19
|
export const DesktopStashEntryMarker = '!!GitHub_Desktop'
|
|
20
20
|
|
package/src/git/status.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getFilesWithConflictMarkers } from './diff-check'
|
|
1
|
+
import { getFilesWithConflictMarkers } from './diff-check.js'
|
|
2
2
|
import {
|
|
3
3
|
WorkingDirectoryStatus,
|
|
4
4
|
WorkingDirectoryFileChange,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
UnmergedEntry,
|
|
10
10
|
ConflictedFileStatus,
|
|
11
11
|
UnmergedEntrySummary,
|
|
12
|
-
} from '../models/status'
|
|
12
|
+
} from '../models/status.js'
|
|
13
13
|
import {
|
|
14
14
|
parsePorcelainStatus,
|
|
15
15
|
mapStatus,
|
|
@@ -17,17 +17,17 @@ import {
|
|
|
17
17
|
IStatusHeader,
|
|
18
18
|
isStatusHeader,
|
|
19
19
|
isStatusEntry,
|
|
20
|
-
} from '../lib/status-parser'
|
|
21
|
-
import { DiffSelectionType, DiffSelection } from '../models/diff'
|
|
22
|
-
import { Repository } from '../models/repository'
|
|
23
|
-
import { IAheadBehind } from '../models/branch'
|
|
24
|
-
import { fatalError } from '../lib/fatal-error'
|
|
25
|
-
import { isMergeHeadSet, isSquashMsgSet } from './merge'
|
|
26
|
-
import { getBinaryPaths } from './diff'
|
|
27
|
-
import { getRebaseInternalState } from './rebase'
|
|
28
|
-
import { RebaseInternalState } from '../models/rebase'
|
|
29
|
-
import { isCherryPickHeadFound } from './cherry-pick'
|
|
30
|
-
import { git } from '.'
|
|
20
|
+
} from '../lib/status-parser.js'
|
|
21
|
+
import { DiffSelectionType, DiffSelection } from '../models/diff/index.js'
|
|
22
|
+
import { Repository } from '../models/repository.js'
|
|
23
|
+
import { IAheadBehind } from '../models/branch.js'
|
|
24
|
+
import { fatalError } from '../lib/fatal-error.js'
|
|
25
|
+
import { isMergeHeadSet, isSquashMsgSet } from './merge.js'
|
|
26
|
+
import { getBinaryPaths } from './diff.js'
|
|
27
|
+
import { getRebaseInternalState } from './rebase.js'
|
|
28
|
+
import { RebaseInternalState } from '../models/rebase.js'
|
|
29
|
+
import { isCherryPickHeadFound } from './cherry-pick.js'
|
|
30
|
+
import { git } from './index.js'
|
|
31
31
|
|
|
32
32
|
/** The encapsulation of the result from 'git status' */
|
|
33
33
|
export interface IStatusResult {
|
package/src/git/submodule.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { git, IGitStringExecutionOptions } from './core'
|
|
2
|
-
import { Repository } from '../models/repository'
|
|
3
|
-
import { SubmoduleEntry } from '../models/submodule'
|
|
4
|
-
import { pathExists } from '../lib/path-exists'
|
|
5
|
-
import { executionOptionsWithProgress, IGitOutput } from '../lib/progress/index'
|
|
1
|
+
import { git, IGitStringExecutionOptions } from './core.js'
|
|
2
|
+
import { Repository } from '../models/repository.js'
|
|
3
|
+
import { SubmoduleEntry } from '../models/submodule.js'
|
|
4
|
+
import { pathExists } from '../lib/path-exists.js'
|
|
5
|
+
import { executionOptionsWithProgress, IGitOutput } from '../lib/progress/index.js'
|
|
6
6
|
import {
|
|
7
7
|
envForRemoteOperation,
|
|
8
8
|
getFallbackUrlForProxyResolve,
|
|
9
|
-
} from './environment'
|
|
10
|
-
import { AuthenticationErrors } from './authentication'
|
|
11
|
-
import { IRemote } from '../models/remote'
|
|
12
|
-
import { Progress } from '../models/progress'
|
|
9
|
+
} from './environment.js'
|
|
10
|
+
import { AuthenticationErrors } from './authentication.js'
|
|
11
|
+
import { IRemote } from '../models/remote.js'
|
|
12
|
+
import { Progress } from '../models/progress.js'
|
|
13
13
|
import { join, resolve } from 'path'
|
|
14
14
|
import { readFile } from 'fs/promises'
|
|
15
15
|
|
package/src/git/tag.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { git } from './core'
|
|
2
|
-
import { Repository } from '../models/repository'
|
|
3
|
-
import { IRemote } from '../models/remote'
|
|
4
|
-
import { envForRemoteOperation } from './environment'
|
|
1
|
+
import { git } from './core.js'
|
|
2
|
+
import { Repository } from '../models/repository.js'
|
|
3
|
+
import { IRemote } from '../models/remote.js'
|
|
4
|
+
import { envForRemoteOperation } from './environment.js'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Create a new tag on the given target commit.
|
package/src/git/update-index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { git } from './core'
|
|
2
|
-
import { Repository } from '../models/repository'
|
|
3
|
-
import { DiffSelectionType } from '../models/diff'
|
|
4
|
-
import { applyPatchToIndex } from './apply'
|
|
1
|
+
import { git } from './core.js'
|
|
2
|
+
import { Repository } from '../models/repository.js'
|
|
3
|
+
import { DiffSelectionType } from '../models/diff/index.js'
|
|
4
|
+
import { applyPatchToIndex } from './apply.js'
|
|
5
5
|
import {
|
|
6
6
|
WorkingDirectoryFileChange,
|
|
7
7
|
AppFileStatusKind,
|
|
8
|
-
} from '../models/status'
|
|
8
|
+
} from '../models/status.js'
|
|
9
9
|
|
|
10
10
|
interface IUpdateIndexOptions {
|
|
11
11
|
/**
|
package/src/git/update-ref.ts
CHANGED