You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| repo |[Repository](/api/repository/)| The repository containing the path. |
55
+
| flags | Number | A combination of GIT_ATTR_CHECK... flags. |
56
+
| path | String | The path to check for attributes. Relative paths are interpreted relative to the repo root. The file does not have to exist, but if it does not, then it will be treated as a plain file (not a directory). |
57
+
| name | String | The name of the attribute to look up. |
58
+
59
+
| Returns ||
60
+
| --- | --- |
61
+
| String | Output of the value of the attribute. Use the GIT_ATTR_...
62
+
macros to test for TRUE, FALSE, UNSPECIFIED, etc. or just
63
+
use the string value for attributes set to a value. You
var array =Attr.getMany(repo, flags, path, num_attr, names);
70
+
```
71
+
72
+
| Parameters | Type ||
73
+
| --- | --- | --- |
74
+
| repo |[Repository](/api/repository/)| The repository containing the path. |
75
+
| flags | Number | A combination of GIT_ATTR_CHECK... flags. |
76
+
| path | String | The path inside the repo to check attributes. This does not have to exist, but if it does not, then it will be treated as a plain file (i.e. not a directory). |
77
+
| num_attr | Number | The number of attributes being looked up |
78
+
| names | String | An array of num_attr strings containing attribute names. |
0 commit comments