type-git 0.8.1 → 0.8.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/dist/adapters/bun/index.cjs +8 -8
- package/dist/adapters/bun/index.d.cts +2 -2
- package/dist/adapters/bun/index.d.ts +2 -2
- package/dist/adapters/bun/index.js +2 -2
- package/dist/adapters/deno/index.cjs +8 -8
- package/dist/adapters/deno/index.d.cts +2 -2
- package/dist/adapters/deno/index.d.ts +2 -2
- package/dist/adapters/deno/index.js +2 -2
- package/dist/adapters/node/index.cjs +4 -4
- package/dist/adapters/node/index.d.cts +2 -2
- package/dist/adapters/node/index.d.ts +2 -2
- package/dist/adapters/node/index.js +3 -3
- package/dist/{chunk-JDCCYWIX.cjs → chunk-4K65HJ37.cjs} +7 -7
- package/dist/{chunk-ADC26634.js → chunk-RR5Q2UP2.js} +170 -124
- package/dist/{chunk-6HDMSFY7.cjs → chunk-RWKMVYO5.cjs} +16 -9
- package/dist/{chunk-UHZWPYTF.cjs → chunk-SKN5H7RX.cjs} +543 -497
- package/dist/{chunk-UAKOSACD.js → chunk-SXHFNCJZ.js} +16 -9
- package/dist/{chunk-S3EFBFVP.js → chunk-YCSKHC3M.js} +1 -1
- package/dist/{client.d-Cg5wWJnY.d.cts → client.d-C8wHgA_S.d.ts} +1 -1
- package/dist/{client.d-DCiFA_CK.d.ts → client.d-DVs3pi2e.d.cts} +1 -1
- package/dist/{git.d-DqAvRXEf.d.cts → git.d-CJUJ4264.d.cts} +31 -8
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/strict/index.cjs +99 -99
- package/dist/strict/index.d.cts +1 -1
- package/dist/strict/index.js +1 -1
- package/package.json +1 -1
|
@@ -3932,7 +3932,8 @@ var COMMAND_CONSTRAINTS = {
|
|
|
3932
3932
|
reason: "Commit --all cannot use a pathspec file.",
|
|
3933
3933
|
source: git("builtin/commit.c")
|
|
3934
3934
|
},
|
|
3935
|
-
// repo.commit emits no path operands and
|
|
3935
|
+
// repo.commit emits no path operands and refuses an empty fixup. It forwards an empty
|
|
3936
|
+
// pathspecFromFile, which Git 2.43 cannot open and newer Git ignores, so it supplies no paths.
|
|
3936
3937
|
{
|
|
3937
3938
|
id: "commit.include-paths",
|
|
3938
3939
|
kind: "requires",
|
|
@@ -4132,7 +4133,8 @@ var COMMAND_CONSTRAINTS = {
|
|
|
4132
4133
|
{
|
|
4133
4134
|
id: "pull.branch-remote",
|
|
4134
4135
|
kind: "requires",
|
|
4135
|
-
|
|
4136
|
+
// repo.pull emits an empty branch too (Git takes it as the remote's HEAD).
|
|
4137
|
+
when: active("branch"),
|
|
4136
4138
|
required: [{ key: "remote", test: "nonempty" }],
|
|
4137
4139
|
origin: "git",
|
|
4138
4140
|
reason: "Git reads the first positional word as the repository, so a branch needs an explicit remote.",
|
|
@@ -4298,7 +4300,7 @@ var COMMAND_CONSTRAINTS = {
|
|
|
4298
4300
|
when: { key: "startPoint", test: "nonempty" },
|
|
4299
4301
|
choices: [active("create"), active("forceCreate")],
|
|
4300
4302
|
origin: "git",
|
|
4301
|
-
reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is
|
|
4303
|
+
reason: "A start point is a second operand, which Git accepts only with -c or -C; --orphan takes no start point. An empty startPoint is refused at runtime, as Git rejects it.",
|
|
4302
4304
|
source: git("builtin/checkout.c")
|
|
4303
4305
|
}
|
|
4304
4306
|
],
|
|
@@ -4936,7 +4938,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
4936
4938
|
kind: "forbid",
|
|
4937
4939
|
when: [
|
|
4938
4940
|
{ key: "fixup", test: "startsWith", value: "amend:" },
|
|
4939
|
-
|
|
4941
|
+
// repo.commit forwards an empty message as -m '', which Git refuses here too.
|
|
4942
|
+
{ key: "message", test: "active" }
|
|
4940
4943
|
],
|
|
4941
4944
|
origin: "git",
|
|
4942
4945
|
reason: "An amend: fixup takes its message from the amended commit, not from a message.",
|
|
@@ -4947,7 +4950,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
4947
4950
|
kind: "forbid",
|
|
4948
4951
|
when: [
|
|
4949
4952
|
{ key: "fixup", test: "startsWith", value: "reword:" },
|
|
4950
|
-
|
|
4953
|
+
// repo.commit forwards an empty message as -m '', which Git refuses here too.
|
|
4954
|
+
{ key: "message", test: "active" }
|
|
4951
4955
|
],
|
|
4952
4956
|
origin: "git",
|
|
4953
4957
|
reason: "A reword: fixup takes its message from the amended commit, not from a message.",
|
|
@@ -4958,7 +4962,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
4958
4962
|
kind: "scalar",
|
|
4959
4963
|
key: "author",
|
|
4960
4964
|
parser: "commit-author",
|
|
4961
|
-
//
|
|
4965
|
+
// An empty author is forwarded and Git matches it against existing authors, so the ident
|
|
4966
|
+
// parser skips it; dry runs return before determine_author_info.
|
|
4962
4967
|
guard: [
|
|
4963
4968
|
{ key: "author", test: "nonempty" },
|
|
4964
4969
|
{ key: "dryRun", test: "inactive" }
|
|
@@ -4972,7 +4977,7 @@ var INPUT_CONSTRAINTS = {
|
|
|
4972
4977
|
kind: "scalar",
|
|
4973
4978
|
key: "date",
|
|
4974
4979
|
parser: "commit-date",
|
|
4975
|
-
// repo.commit
|
|
4980
|
+
// repo.commit refuses an empty date and converts a Date, which still needs a valid time.
|
|
4976
4981
|
guard: [
|
|
4977
4982
|
{ key: "date", test: "present" },
|
|
4978
4983
|
{ key: "date", test: "notEquals", value: "" },
|
|
@@ -4988,7 +4993,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
4988
4993
|
id: "restore.paths",
|
|
4989
4994
|
kind: "requiresAny",
|
|
4990
4995
|
when: { key: "paths", test: "lengthEquals", value: 0 },
|
|
4991
|
-
// An empty pathspecFromFile is
|
|
4996
|
+
// An empty pathspecFromFile is forwarded but supplies no paths (Git 2.43 cannot open it and
|
|
4997
|
+
// newer Git ignores it), so it does not count.
|
|
4992
4998
|
choices: [{ key: "pathspecFromFile", test: "nonempty" }],
|
|
4993
4999
|
origin: "git",
|
|
4994
5000
|
reason: "Restore without patch mode needs paths or a pathspec file.",
|
|
@@ -5010,7 +5016,8 @@ var INPUT_CONSTRAINTS = {
|
|
|
5010
5016
|
key: "paths",
|
|
5011
5017
|
min: 0,
|
|
5012
5018
|
max: 0,
|
|
5013
|
-
//
|
|
5019
|
+
// An empty pathspecFromFile is forwarded but names no file (Git 2.43 cannot open it and newer
|
|
5020
|
+
// Git ignores it), so it does not count.
|
|
5014
5021
|
when: { key: "pathspecFromFile", test: "nonempty" },
|
|
5015
5022
|
origin: "git",
|
|
5016
5023
|
reason: "Pathspec files cannot be combined with command-line pathspecs.",
|