@scolladon/tsgit 2.0.1 → 3.1.0
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 +14 -2
- package/dist/cjs/adapters/browser/index.cjs +1 -2
- package/dist/cjs/adapters/memory/index.cjs +1 -2
- package/dist/cjs/adapters/node/index.cjs +1 -2
- package/dist/cjs/chunks/adapter-detect-DW9fsw9d.cjs +1 -0
- package/dist/cjs/chunks/browser-http-transport-DGwW5YL7.cjs +1 -0
- package/dist/cjs/chunks/context-BcoAzPuU.cjs +0 -1
- package/dist/cjs/chunks/error-CfLWDui_.cjs +1 -0
- package/dist/cjs/chunks/index-Cy44GVR6.cjs +1 -0
- package/dist/cjs/chunks/inflate-CmCtM4-w.cjs +1 -0
- package/dist/cjs/chunks/lru-cache-1OU7JhD8.cjs +0 -1
- package/dist/cjs/chunks/memory-http-transport-CGriODcQ.cjs +1 -0
- package/dist/cjs/chunks/node-ssh-transport-PFu3ijfp.cjs +1 -0
- package/dist/cjs/chunks/{progress-CxU62NC1.cjs → progress-D8Dqbftk.cjs} +1 -2
- package/dist/cjs/chunks/readable-stream-MTA6D0Zh.cjs +0 -1
- package/dist/cjs/chunks/repository-Ci-BBxk0.cjs +1 -0
- package/dist/cjs/chunks/write-sparse-checkout-C1dsHCAD.cjs +1 -0
- package/dist/cjs/commands/index.cjs +1 -2
- package/dist/cjs/index.browser.cjs +1 -2
- package/dist/cjs/index.cjs +1 -2
- package/dist/cjs/index.default.cjs +1 -2
- package/dist/cjs/index.node.cjs +1 -2
- package/dist/cjs/operators/index.cjs +0 -1
- package/dist/cjs/primitives/index.cjs +1 -2
- package/dist/cjs/transport/index.cjs +0 -1
- package/dist/esm/adapters/browser/index.js +1 -2
- package/dist/esm/adapters/memory/index.js +1 -2
- package/dist/esm/adapters/node/index.js +1 -2
- package/dist/esm/chunks/adapter-detect-BkCMnjrI.js +1 -0
- package/dist/esm/chunks/browser-http-transport-CSxAte5h.js +1 -0
- package/dist/esm/chunks/context-CumKOV7K.js +0 -1
- package/dist/esm/chunks/error-BotOd-nD.js +1 -0
- package/dist/esm/chunks/index-DsvINN8n.js +1 -0
- package/dist/esm/chunks/inflate-BCIXqeeE.js +1 -0
- package/dist/esm/chunks/lru-cache-Cy7C7Lx2.js +0 -1
- package/dist/esm/chunks/memory-http-transport-caqmMGR1.js +1 -0
- package/dist/esm/chunks/node-ssh-transport-BgSv2IhT.js +1 -0
- package/dist/esm/chunks/{progress-BZobfl7p.js → progress-B_AJnOHx.js} +1 -2
- package/dist/esm/chunks/readable-stream-CGuf8k1J.js +0 -1
- package/dist/esm/chunks/repository-DyxknzvE.js +1 -0
- package/dist/esm/chunks/write-sparse-checkout-BwHbNKNS.js +1 -0
- package/dist/esm/commands/index.js +1 -2
- package/dist/esm/index.browser.js +1 -2
- package/dist/esm/index.default.js +1 -2
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.node.js +1 -2
- package/dist/esm/operators/index.js +0 -1
- package/dist/esm/primitives/index.js +1 -2
- package/dist/esm/transport/index.js +0 -1
- package/dist/types/adapters/browser/index.d.cts +5 -3
- package/dist/types/adapters/browser/index.d.ts +5 -3
- package/dist/types/adapters/memory/index.d.cts +31 -4
- package/dist/types/adapters/memory/index.d.ts +31 -4
- package/dist/types/adapters/node/index.d.cts +146 -40
- package/dist/types/adapters/node/index.d.ts +146 -40
- package/dist/types/chunks/{context-YDw6qicq.d.cts → context-CF1YF2S8.d.cts} +165 -6
- package/dist/types/chunks/{context-CCL0_F8R.d.ts → context-sIhhtk2u.d.ts} +165 -6
- package/dist/types/chunks/{http-transport--_NdQOiw.d.cts → http-transport-DirKfK2S.d.cts} +1 -1
- package/dist/types/chunks/{http-transport--_NdQOiw.d.ts → http-transport-DirKfK2S.d.ts} +1 -1
- package/dist/types/chunks/index-B5Dps3fg.d.ts +2468 -0
- package/dist/types/chunks/index-B_A8VLaf.d.ts +1221 -0
- package/dist/types/chunks/index-Dfh8cvEs.d.cts +2468 -0
- package/dist/types/chunks/index-Dqxddhav.d.cts +1221 -0
- package/dist/types/chunks/progress-BjAKfkam.d.ts +1217 -0
- package/dist/types/chunks/progress-Ldnfb8st.d.cts +1217 -0
- package/dist/types/chunks/reflog-entry-Cqh3QrPH.d.ts +697 -0
- package/dist/types/chunks/reflog-entry-Dy-O27Dd.d.cts +697 -0
- package/dist/types/chunks/{repository-FoS_Laoy.d.ts → repository-D8QBTkEz.d.ts} +58 -20
- package/dist/types/chunks/{repository-BeifCqp0.d.cts → repository-D9YrVhcH.d.cts} +58 -20
- package/dist/types/commands/index.d.cts +4 -1259
- package/dist/types/commands/index.d.ts +4 -1259
- package/dist/types/index.browser.d.cts +7 -8
- package/dist/types/index.browser.d.ts +7 -8
- package/dist/types/index.d.cts +61 -124
- package/dist/types/index.d.ts +61 -124
- package/dist/types/index.default.d.cts +7 -8
- package/dist/types/index.default.d.ts +7 -8
- package/dist/types/index.node.d.cts +7 -8
- package/dist/types/index.node.d.ts +7 -8
- package/dist/types/primitives/index.d.cts +4 -692
- package/dist/types/primitives/index.d.ts +4 -692
- package/dist/types/transport/index.d.cts +1 -1
- package/dist/types/transport/index.d.ts +1 -1
- package/package.json +94 -28
- package/dist/cjs/adapters/browser/index.cjs.map +0 -1
- package/dist/cjs/adapters/memory/index.cjs.map +0 -1
- package/dist/cjs/adapters/node/index.cjs.map +0 -1
- package/dist/cjs/chunks/adapter-detect-CD_LcgaH.cjs +0 -2
- package/dist/cjs/chunks/adapter-detect-CD_LcgaH.cjs.map +0 -1
- package/dist/cjs/chunks/browser-http-transport-CiMRqtDS.cjs +0 -2
- package/dist/cjs/chunks/browser-http-transport-CiMRqtDS.cjs.map +0 -1
- package/dist/cjs/chunks/context-BcoAzPuU.cjs.map +0 -1
- package/dist/cjs/chunks/error-CfjFO3x_.cjs +0 -2
- package/dist/cjs/chunks/error-CfjFO3x_.cjs.map +0 -1
- package/dist/cjs/chunks/index-BWCq_5BJ.cjs +0 -2
- package/dist/cjs/chunks/index-BWCq_5BJ.cjs.map +0 -1
- package/dist/cjs/chunks/lru-cache-1OU7JhD8.cjs.map +0 -1
- package/dist/cjs/chunks/memory-http-transport-BVL6VgB-.cjs +0 -2
- package/dist/cjs/chunks/memory-http-transport-BVL6VgB-.cjs.map +0 -1
- package/dist/cjs/chunks/node-http-transport-BvfVcf02.cjs +0 -2
- package/dist/cjs/chunks/node-http-transport-BvfVcf02.cjs.map +0 -1
- package/dist/cjs/chunks/progress-CxU62NC1.cjs.map +0 -1
- package/dist/cjs/chunks/readable-stream-MTA6D0Zh.cjs.map +0 -1
- package/dist/cjs/chunks/repository-BEg2zNtx.cjs +0 -2
- package/dist/cjs/chunks/repository-BEg2zNtx.cjs.map +0 -1
- package/dist/cjs/chunks/walk-submodules-D2Sp7JEB.cjs +0 -2
- package/dist/cjs/chunks/walk-submodules-D2Sp7JEB.cjs.map +0 -1
- package/dist/cjs/commands/index.cjs.map +0 -1
- package/dist/cjs/index.browser.cjs.map +0 -1
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/index.default.cjs.map +0 -1
- package/dist/cjs/index.node.cjs.map +0 -1
- package/dist/cjs/operators/index.cjs.map +0 -1
- package/dist/cjs/primitives/index.cjs.map +0 -1
- package/dist/cjs/transport/index.cjs.map +0 -1
- package/dist/esm/adapters/browser/index.js.map +0 -1
- package/dist/esm/adapters/memory/index.js.map +0 -1
- package/dist/esm/adapters/node/index.js.map +0 -1
- package/dist/esm/chunks/adapter-detect-DkZhhUhd.js +0 -2
- package/dist/esm/chunks/adapter-detect-DkZhhUhd.js.map +0 -1
- package/dist/esm/chunks/browser-http-transport-4rJkHcQu.js +0 -2
- package/dist/esm/chunks/browser-http-transport-4rJkHcQu.js.map +0 -1
- package/dist/esm/chunks/context-CumKOV7K.js.map +0 -1
- package/dist/esm/chunks/error-Dc-SRSJK.js +0 -2
- package/dist/esm/chunks/error-Dc-SRSJK.js.map +0 -1
- package/dist/esm/chunks/index-jH0UMhh-.js +0 -2
- package/dist/esm/chunks/index-jH0UMhh-.js.map +0 -1
- package/dist/esm/chunks/lru-cache-Cy7C7Lx2.js.map +0 -1
- package/dist/esm/chunks/memory-http-transport-CA1WxWBp.js +0 -2
- package/dist/esm/chunks/memory-http-transport-CA1WxWBp.js.map +0 -1
- package/dist/esm/chunks/node-http-transport-DPa2lK3T.js +0 -2
- package/dist/esm/chunks/node-http-transport-DPa2lK3T.js.map +0 -1
- package/dist/esm/chunks/progress-BZobfl7p.js.map +0 -1
- package/dist/esm/chunks/readable-stream-CGuf8k1J.js.map +0 -1
- package/dist/esm/chunks/repository-DF6ePd1x.js +0 -2
- package/dist/esm/chunks/repository-DF6ePd1x.js.map +0 -1
- package/dist/esm/chunks/walk-submodules-Dq9oGwP8.js +0 -2
- package/dist/esm/chunks/walk-submodules-Dq9oGwP8.js.map +0 -1
- package/dist/esm/commands/index.js.map +0 -1
- package/dist/esm/index.browser.js.map +0 -1
- package/dist/esm/index.default.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.node.js.map +0 -1
- package/dist/esm/operators/index.js.map +0 -1
- package/dist/esm/primitives/index.js.map +0 -1
- package/dist/esm/transport/index.js.map +0 -1
- package/dist/types/chunks/index-entry-DtEbVpOG.d.cts +0 -47
- package/dist/types/chunks/index-entry-UD4dvtKh.d.ts +0 -47
- package/dist/types/chunks/progress-7KKiXXfX.d.ts +0 -405
- package/dist/types/chunks/progress-By8yFaUE.d.cts +0 -405
- package/dist/types/chunks/reflog-entry-BbNnXCTC.d.cts +0 -368
- package/dist/types/chunks/reflog-entry-CSzjnZd4.d.ts +0 -368
- package/dist/types/chunks/write-tree-C3oNxOlX.d.cts +0 -196
- package/dist/types/chunks/write-tree-DRI-LzSr.d.ts +0 -196
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { b as Context, O as ObjectId, c as FilePath, j as RefName, g as HookName } from './context-CCL0_F8R.js';
|
|
2
|
-
import { d as CatFileBatchOptions, C as CatFileBatchEntry, e as CreateCommitInput, D as DiffTreesInput, f as DiffTreesOptions, T as TreeDiff, s as ReadObjectOptions, B as Blob, G as GitObject, a as Tree, t as ResolveRefOptions, F as FileMode, U as UpdateRefOptions, W as WalkCommitsOptions, E as Commit, v as WalkSubmodulesOptions, S as SubmoduleEntry, x as WalkTreeOptions, w as WalkTreeEntry, z as WalkWorkingTreeOptions, y as WalkWorkingTreeEntry, H as TreeEntry } from './reflog-entry-CSzjnZd4.js';
|
|
3
|
-
import { G as GitIndex, a as IndexEntryFlags, I as IndexEntry } from './index-entry-UD4dvtKh.js';
|
|
4
|
-
|
|
5
|
-
declare function catFileBatch(ctx: Context, ids: AsyncIterable<ObjectId> | Iterable<ObjectId>, options?: CatFileBatchOptions): AsyncIterable<CatFileBatchEntry>;
|
|
6
|
-
|
|
7
|
-
declare function createCommit(ctx: Context, input: CreateCommitInput): Promise<ObjectId>;
|
|
8
|
-
|
|
9
|
-
declare function diffTrees(ctx: Context, a: DiffTreesInput, b: DiffTreesInput, options?: DiffTreesOptions): Promise<TreeDiff>;
|
|
10
|
-
|
|
11
|
-
interface HashBlobOptions {
|
|
12
|
-
/** Persist the loose object under `.git/objects/<2>/<38>`. Default `false`. */
|
|
13
|
-
readonly write?: boolean;
|
|
14
|
-
}
|
|
15
|
-
declare const hashBlob: (ctx: Context, content: Uint8Array, opts?: HashBlobOptions) => Promise<ObjectId>;
|
|
16
|
-
|
|
17
|
-
interface IsIgnoredQuery {
|
|
18
|
-
readonly path: FilePath;
|
|
19
|
-
/** Match directory rules (`build/`). Defaults to `false`. */
|
|
20
|
-
readonly isDirectory?: boolean;
|
|
21
|
-
}
|
|
22
|
-
interface IsIgnoredMatchSource {
|
|
23
|
-
readonly kind: 'global' | 'info' | 'gitignore';
|
|
24
|
-
/** POSIX-relative directory whose file carried the rule. `''` for global / info / repo-root gitignore. */
|
|
25
|
-
readonly basedir: FilePath | '';
|
|
26
|
-
/** 1-based line number of the matching rule inside its file. */
|
|
27
|
-
readonly line: number;
|
|
28
|
-
/** Raw pattern text (e.g. `*.log`, `!keep.log`, `build/`). */
|
|
29
|
-
readonly pattern: string;
|
|
30
|
-
}
|
|
31
|
-
interface IsIgnoredMatch {
|
|
32
|
-
readonly path: FilePath;
|
|
33
|
-
readonly ignored: boolean;
|
|
34
|
-
/** Set only when `ignored === true`. */
|
|
35
|
-
readonly source?: IsIgnoredMatchSource;
|
|
36
|
-
}
|
|
37
|
-
declare const isIgnored: (ctx: Context, queries: ReadonlyArray<IsIgnoredQuery>) => Promise<ReadonlyArray<IsIgnoredMatch>>;
|
|
38
|
-
|
|
39
|
-
interface MergeBaseOptions {
|
|
40
|
-
readonly all?: boolean;
|
|
41
|
-
readonly octopus?: boolean;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Compute merge bases — the best common ancestors of the given commits.
|
|
45
|
-
*
|
|
46
|
-
* `commits[0]` is `one`, the rest are the others. Returns the lexicographically
|
|
47
|
-
* smallest single base by default; the full reduced set with `{ all: true }`;
|
|
48
|
-
* the octopus fold with `{ octopus: true }`. Unrelated histories yield `[]`.
|
|
49
|
-
*/
|
|
50
|
-
declare const mergeBase: (ctx: Context, commits: readonly ObjectId[], options?: MergeBaseOptions) => Promise<readonly ObjectId[]>;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Pure path helpers composing `ctx.layout.gitDir` with known sub-paths.
|
|
54
|
-
* No I/O. No port access. Primitive step 3.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Repository working-tree root. Returns the workDir from the current context;
|
|
59
|
-
* facade-tier code is responsible for discovery / realpath pinning
|
|
60
|
-
* at construction time. Primitives consume the already-resolved path.
|
|
61
|
-
*/
|
|
62
|
-
declare const getRepoRoot: (ctx: Context) => FilePath;
|
|
63
|
-
declare const sparseCheckoutPath: (gitDir: string) => string;
|
|
64
|
-
|
|
65
|
-
declare function readBlob(ctx: Context, id: ObjectId, options?: ReadObjectOptions): Promise<Blob>;
|
|
66
|
-
|
|
67
|
-
declare function readIndex(ctx: Context): Promise<GitIndex>;
|
|
68
|
-
|
|
69
|
-
declare function readObject(ctx: Context, id: ObjectId, options?: ReadObjectOptions): Promise<GitObject>;
|
|
70
|
-
|
|
71
|
-
declare function readTree(ctx: Context, ref: RefName | ObjectId): Promise<Tree>;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* The single reflog *writer*. Self-contained: reads config, applies the gate,
|
|
75
|
-
* resolves identity, sanitises the message, and appends one entry. Callers
|
|
76
|
-
* supply only a human-readable message.
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Append a reflog entry for `ref` if logging applies. A no-op when the gate is
|
|
81
|
-
* closed for `ref` — once a reflog file exists every update appends to it,
|
|
82
|
-
* otherwise the `core.logAllRefUpdates` prefix rule decides.
|
|
83
|
-
*/
|
|
84
|
-
declare function recordRefUpdate(ctx: Context, ref: RefName, oldId: ObjectId, newId: ObjectId, message: string): Promise<void>;
|
|
85
|
-
|
|
86
|
-
declare function resolveRef(ctx: Context, name: RefName | 'HEAD', options?: ResolveRefOptions): Promise<ObjectId>;
|
|
87
|
-
|
|
88
|
-
/** Optional arguments and stdin a caller threads into a hook invocation. */
|
|
89
|
-
interface HookInput {
|
|
90
|
-
readonly args?: ReadonlyArray<string>;
|
|
91
|
-
readonly stdin?: string;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Run a named git hook through `ctx.hooks`. A no-op when no `HookRunner` is
|
|
95
|
-
* wired (browser, or opted out), when the hook file is absent / not executable
|
|
96
|
-
* (`skipped`), or when the hook exits 0. Throws `HOOK_FAILED` on a non-zero
|
|
97
|
-
* exit.
|
|
98
|
-
*/
|
|
99
|
-
declare const runHook: (ctx: Context, name: HookName, input?: HookInput) => Promise<void>;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Flip flags (`assumeValid`, `skipWorktree`, `intentToAdd`) on an existing
|
|
103
|
-
* index entry without rehashing. Used by `stash pop`, `mv`, and other
|
|
104
|
-
* porcelain that need to restore flag state after a tree-level operation.
|
|
105
|
-
*
|
|
106
|
-
* The on-disk version is auto-promoted to v3 by `serializeIndex` whenever
|
|
107
|
-
* an extended flag flips true — nothing to manage at the primitive layer
|
|
108
|
-
* (ADR-164).
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
interface SetEntryFlagsOptions {
|
|
112
|
-
readonly breakStaleLockMs?: number;
|
|
113
|
-
}
|
|
114
|
-
declare const setEntryFlags: (ctx: Context, path: FilePath, flags: Partial<IndexEntryFlags>, opts?: SetEntryFlagsOptions) => Promise<IndexEntry>;
|
|
115
|
-
|
|
116
|
-
type StageEntrySource = {
|
|
117
|
-
readonly content: Uint8Array;
|
|
118
|
-
readonly mode?: FileMode;
|
|
119
|
-
} | {
|
|
120
|
-
readonly id: ObjectId;
|
|
121
|
-
readonly mode: FileMode;
|
|
122
|
-
};
|
|
123
|
-
interface StageEntryOptions {
|
|
124
|
-
readonly breakStaleLockMs?: number;
|
|
125
|
-
/** Flags overlay on top of `STAGE0_FLAGS`. Use to seed `intentToAdd` etc. */
|
|
126
|
-
readonly flags?: Partial<IndexEntryFlags>;
|
|
127
|
-
}
|
|
128
|
-
declare const stageEntry: (ctx: Context, path: FilePath, source: StageEntrySource, opts?: StageEntryOptions) => Promise<IndexEntry>;
|
|
129
|
-
|
|
130
|
-
interface UnstageEntryOptions {
|
|
131
|
-
readonly breakStaleLockMs?: number;
|
|
132
|
-
}
|
|
133
|
-
declare const unstageEntry: (ctx: Context, path: FilePath, opts?: UnstageEntryOptions) => Promise<{
|
|
134
|
-
readonly removed: boolean;
|
|
135
|
-
}>;
|
|
136
|
-
|
|
137
|
-
declare function updateRef(ctx: Context, name: RefName, newId: ObjectId, options: UpdateRefOptions): Promise<void>;
|
|
138
|
-
|
|
139
|
-
declare function walkCommits(ctx: Context, options: WalkCommitsOptions): AsyncIterable<Commit>;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Yield every gitlink reachable in `ref`'s tree, joined with its `.gitmodules`
|
|
143
|
-
* metadata. With `recursive: true`, descend into each nested submodule whose
|
|
144
|
-
* absorbed gitdir (`${gitDir}/modules/<name>`) is locally available; nested
|
|
145
|
-
* yields carry `depth >= 1` and a `parent` path. Uninitialised / missing /
|
|
146
|
-
* cyclic nested submodules contribute their own entry but no children — the
|
|
147
|
-
* absence of further yields is the signal, matching `git submodule status
|
|
148
|
-
* --recursive`.
|
|
149
|
-
*/
|
|
150
|
-
declare function walkSubmodules(ctx: Context, options?: WalkSubmodulesOptions): AsyncIterable<SubmoduleEntry>;
|
|
151
|
-
|
|
152
|
-
declare function walkTree(ctx: Context, treeIdOrObject: ObjectId | Tree, options?: WalkTreeOptions): AsyncIterable<WalkTreeEntry>;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Depth-first walk of the working tree starting at `ctx.layout.workDir`.
|
|
156
|
-
*
|
|
157
|
-
* Yields leaf entries (files and symlinks) as `{ path, stat }`. Directories
|
|
158
|
-
* are descended into, not yielded. `.git` at any level is skipped
|
|
159
|
-
* (case-insensitive, NTFS-trimmed). Embedded repositories (directories
|
|
160
|
-
* containing a `.git` child) are skipped entirely — yields nothing under
|
|
161
|
-
* them. Symlinks are surfaced via `lstat` (no follow); a symlink to a
|
|
162
|
-
* directory is yielded as a leaf, not descended into.
|
|
163
|
-
*
|
|
164
|
-
* The host repository's own `.git` is NOT treated as an embedded-repo
|
|
165
|
-
* marker — at the workDir root we only skip the `.git` entry itself, not
|
|
166
|
-
* the workDir.
|
|
167
|
-
*/
|
|
168
|
-
declare function walkWorkingTree(ctx: Context, options?: WalkWorkingTreeOptions): AsyncIterable<WalkWorkingTreeEntry>;
|
|
169
|
-
|
|
170
|
-
declare function writeObject(ctx: Context, object: GitObject): Promise<ObjectId>;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Symbolic-ref writer. Produces `ref: <target>\n` files (HEAD and friends).
|
|
174
|
-
* Used by `init`/`clone`/branch-rename to set the initial HEAD pointer.
|
|
175
|
-
*
|
|
176
|
-
* @writes
|
|
177
|
-
* surface: symbolicRef
|
|
178
|
-
* kind: byte-identical
|
|
179
|
-
* format: git-symbolic-ref
|
|
180
|
-
*/
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Write a symbolic ref atomically. Used for HEAD updates that point at a
|
|
184
|
-
* branch, branch renames affecting the current HEAD, and `clone`/`init`
|
|
185
|
-
* to set the initial HEAD.
|
|
186
|
-
*
|
|
187
|
-
* Single-level only in v1: target MUST be a direct ref name (no chained
|
|
188
|
-
* symrefs). Validation runs through `validateRefName` for both `name` and
|
|
189
|
-
* `target` — invalid inputs throw INVALID_REF before any I/O.
|
|
190
|
-
*/
|
|
191
|
-
declare const writeSymbolicRef: (ctx: Context, name: RefName, target: RefName) => Promise<void>;
|
|
192
|
-
|
|
193
|
-
declare function writeTree(ctx: Context, entries: ReadonlyArray<TreeEntry>): Promise<ObjectId>;
|
|
194
|
-
|
|
195
|
-
export { sparseCheckoutPath as E, createCommit as a, readIndex as b, catFileBatch as c, diffTrees as d, readObject as e, readTree as f, getRepoRoot as g, hashBlob as h, isIgnored as i, recordRefUpdate as j, resolveRef as k, runHook as l, mergeBase as m, stageEntry as n, updateRef as o, walkSubmodules as p, walkTree as q, readBlob as r, setEntryFlags as s, walkWorkingTree as t, unstageEntry as u, writeObject as v, walkCommits as w, writeSymbolicRef as x, writeTree as y };
|
|
196
|
-
export type { IsIgnoredMatchSource as A, IsIgnoredQuery as B, StageEntryOptions as C, StageEntrySource as D, HashBlobOptions as H, IsIgnoredMatch as I, SetEntryFlagsOptions as S, UnstageEntryOptions as U, HookInput as z };
|