just-git 0.1.5 → 0.1.7
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 +4 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +380 -337
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://github.com/blindmansion/just-git/actions/workflows/ci.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/just-git)
|
|
5
5
|
|
|
6
|
-
Git implementation for virtual bash environments (particularly [just-bash](https://github.com/vercel-labs/just-bash)). Pure TypeScript, zero dependencies. Works in Node, Bun, Deno, and the browser. ~
|
|
6
|
+
Git implementation for virtual bash environments (particularly [just-bash](https://github.com/vercel-labs/just-bash)). Pure TypeScript, zero dependencies. Works in Node, Bun, Deno, and the browser. ~100 kB gzipped.
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
@@ -179,7 +179,7 @@ Fire-and-forget events emitted on every object/ref write. Handler errors are cau
|
|
|
179
179
|
|
|
180
180
|
## Command coverage
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
34 commands implemented. See [CLI.md](CLI.md) for full usage details.
|
|
183
183
|
|
|
184
184
|
| Command | Flags / options |
|
|
185
185
|
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
@@ -210,6 +210,7 @@ Fire-and-forget events emitted on every object/ref write. Handler errors are cau
|
|
|
210
210
|
| `fetch [<remote>] [<refspec>...]` | `--all`, `--tags`, `--prune`/`-p` |
|
|
211
211
|
| `push [<remote>] [<refspec>...]` | `--force`/`-f`, `-u`/`--set-upstream`, `--all`, `--tags`, `--delete`/`-d` |
|
|
212
212
|
| `pull [<remote>] [<branch>]` | `--ff-only`, `--no-ff`, `--rebase`/`-r`, `--no-rebase` |
|
|
213
|
+
| `bisect` | `start`, `bad`/`good`/`new`/`old`, `skip`, `reset`, `log`, `replay`, `run`, `terms`, `visualize`/`view`, `--term-new`/`--term-old`, `--no-checkout`, `--first-parent` |
|
|
213
214
|
| `clean` | `-f`, `-n`/`--dry-run`, `-d`, `-x`, `-X`, `-e`/`--exclude` |
|
|
214
215
|
| `reflog` | `show [<ref>]`, `exists`, `-n`/`--max-count` |
|
|
215
216
|
| `gc` | `--aggressive` |
|
|
@@ -234,7 +235,7 @@ Fire-and-forget events emitted on every object/ref write. Handler errors are cau
|
|
|
234
235
|
|
|
235
236
|
## Goals and testing
|
|
236
237
|
|
|
237
|
-
High fidelity to real git (2.53.0) state and output. Tested using real git as an [oracle](test/oracle/README.md)
|
|
238
|
+
High fidelity to real git (2.53.0) state and output. Tested using real git as an [oracle](test/oracle/README.md) — hundreds of randomized traces totaling hundreds of thousands of git operations, each verified step-by-step against real git's state and output.
|
|
238
239
|
|
|
239
240
|
When backed by a real filesystem (e.g. `just-bash` `ReadWriteFs`), interoperable with real git on the same repo, though less extensively tested than behavioral correctness.
|
|
240
241
|
|
package/dist/index.d.ts
CHANGED
|
@@ -359,7 +359,7 @@ interface CommandContext {
|
|
|
359
359
|
exec?: (command: string, options: CommandExecOptions) => Promise<ExecResult>;
|
|
360
360
|
signal?: AbortSignal;
|
|
361
361
|
}
|
|
362
|
-
type GitCommandName = "init" | "clone" | "fetch" | "pull" | "push" | "add" | "blame" | "commit" | "status" | "log" | "branch" | "tag" | "checkout" | "diff" | "reset" | "merge" | "cherry-pick" | "revert" | "rebase" | "mv" | "rm" | "remote" | "config" | "show" | "stash" | "rev-parse" | "ls-files" | "clean" | "switch" | "restore" | "reflog" | "repack" | "gc";
|
|
362
|
+
type GitCommandName = "init" | "clone" | "fetch" | "pull" | "push" | "add" | "blame" | "commit" | "status" | "log" | "branch" | "tag" | "checkout" | "diff" | "reset" | "merge" | "cherry-pick" | "revert" | "rebase" | "mv" | "rm" | "remote" | "config" | "show" | "stash" | "rev-parse" | "ls-files" | "clean" | "switch" | "restore" | "reflog" | "repack" | "gc" | "bisect";
|
|
363
363
|
interface GitOptions {
|
|
364
364
|
credentials?: CredentialProvider;
|
|
365
365
|
identity?: IdentityOverride;
|