getAttr
경로에 대한 git 속성 값을 가져와요.
시그니처
ts
class Repository {
getAttr(
path: string,
name: string,
options?: AttrOptions | null | undefined
): boolean | string | Buffer | null;파라미터
- path필수 · string
속성을 확인할 경로예요. 상대 경로는 리포지토리 루트를 기준으로 해석돼요.
- name필수 · string
조회할 속성 이름이에요.
- optionsnull | AttrOptions
속성 조회를 위한 옵션이에요.
- checkFileThenIndexboolean
작업 디렉터리를 확인한 다음 인덱스를 확인해요.
- checkIndexOnlyboolean
인덱스만 확인해요.
- checkIndexThenFileboolean
인덱스를 확인한 다음 작업 디렉터리를 확인해요.
- checkNoSystemboolean
시스템 gitattributes 파일을 사용하지 않아요.
- checkFileThenIndexboolean
반환 값
- null | string | boolean | Buffer<ArrayBufferLike>
속성 값의 출력
