es-git 0.5.0-next.168 → 0.5.0-next.170
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/index.d.ts +32 -0
- package/package.json +12 -12
package/index.d.ts
CHANGED
|
@@ -2677,6 +2677,27 @@ export declare class Repository {
|
|
|
2677
2677
|
* @returns The postimage of the application
|
|
2678
2678
|
*/
|
|
2679
2679
|
applyToTree(tree: Tree, diff: Diff, options?: ApplyOptions | undefined | null): Index
|
|
2680
|
+
/**
|
|
2681
|
+
* Get the value of a git attribute for a path.
|
|
2682
|
+
*
|
|
2683
|
+
* @ository/Methods
|
|
2684
|
+
* @signature
|
|
2685
|
+
* ```ts
|
|
2686
|
+
* class Repository {
|
|
2687
|
+
* getAttr(
|
|
2688
|
+
* path: string,
|
|
2689
|
+
* name: string,
|
|
2690
|
+
* options?: AttrOptions | null | undefined
|
|
2691
|
+
* ): boolean | string | Buffer | null;
|
|
2692
|
+
* ```
|
|
2693
|
+
*
|
|
2694
|
+
* @param {string} path - The path to check for attributes. Relative paths are interpreted relative to the repo root.
|
|
2695
|
+
* @param {string} name - The name of the attribute to look up.
|
|
2696
|
+
* @param {AttrOptions} [options] - Options for attribute lookup.
|
|
2697
|
+
*
|
|
2698
|
+
* @returns Output of the value of the attribute.
|
|
2699
|
+
*/
|
|
2700
|
+
getAttr(path: string, name: string, options?: AttrOptions | undefined | null): boolean | string | Buffer | null
|
|
2680
2701
|
/**
|
|
2681
2702
|
* Creates a blame object for the file at the given path
|
|
2682
2703
|
*
|
|
@@ -5727,6 +5748,17 @@ export interface ApplyOptions {
|
|
|
5727
5748
|
check?: boolean
|
|
5728
5749
|
}
|
|
5729
5750
|
|
|
5751
|
+
export interface AttrOptions {
|
|
5752
|
+
/** Check the working directory, then the index. */
|
|
5753
|
+
checkFileThenIndex?: boolean
|
|
5754
|
+
/** Check the index, then the working directory. */
|
|
5755
|
+
checkIndexThenFile?: boolean
|
|
5756
|
+
/** Check the index only. */
|
|
5757
|
+
checkIndexOnly?: boolean
|
|
5758
|
+
/** Do not use the system gitattributes file. */
|
|
5759
|
+
checkNoSystem?: boolean
|
|
5760
|
+
}
|
|
5761
|
+
|
|
5730
5762
|
/**
|
|
5731
5763
|
* - `Unspecified` : Use the setting from the remote's configuration
|
|
5732
5764
|
* - `Auto` : Ask the server for tags pointing to objects we're already downloading
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-git",
|
|
3
|
-
"version": "0.5.0-next.
|
|
3
|
+
"version": "0.5.0-next.170+131625d",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "https://github.com/toss/es-git.git"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"packageManager": "yarn@4.
|
|
16
|
+
"packageManager": "yarn@4.12.0",
|
|
17
17
|
"napi": {
|
|
18
18
|
"binaryName": "es-git",
|
|
19
19
|
"targets": [
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"vitest": "^3.0.5"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"es-git-darwin-x64": "0.5.0-next.
|
|
58
|
-
"es-git-darwin-arm64": "0.5.0-next.
|
|
59
|
-
"es-git-win32-x64-msvc": "0.5.0-next.
|
|
60
|
-
"es-git-win32-arm64-msvc": "0.5.0-next.
|
|
61
|
-
"es-git-linux-x64-gnu": "0.5.0-next.
|
|
62
|
-
"es-git-linux-x64-musl": "0.5.0-next.
|
|
63
|
-
"es-git-android-arm64": "0.5.0-next.
|
|
64
|
-
"es-git-linux-arm64-gnu": "0.5.0-next.
|
|
65
|
-
"es-git-linux-arm64-musl": "0.5.0-next.
|
|
66
|
-
"es-git-android-arm-eabi": "0.5.0-next.
|
|
57
|
+
"es-git-darwin-x64": "0.5.0-next.170+131625d",
|
|
58
|
+
"es-git-darwin-arm64": "0.5.0-next.170+131625d",
|
|
59
|
+
"es-git-win32-x64-msvc": "0.5.0-next.170+131625d",
|
|
60
|
+
"es-git-win32-arm64-msvc": "0.5.0-next.170+131625d",
|
|
61
|
+
"es-git-linux-x64-gnu": "0.5.0-next.170+131625d",
|
|
62
|
+
"es-git-linux-x64-musl": "0.5.0-next.170+131625d",
|
|
63
|
+
"es-git-android-arm64": "0.5.0-next.170+131625d",
|
|
64
|
+
"es-git-linux-arm64-gnu": "0.5.0-next.170+131625d",
|
|
65
|
+
"es-git-linux-arm64-musl": "0.5.0-next.170+131625d",
|
|
66
|
+
"es-git-android-arm-eabi": "0.5.0-next.170+131625d"
|
|
67
67
|
}
|
|
68
68
|
}
|