anvl_git ¶A builtin plugin for cloning Git repositories.
ls_files(Dir, Options) ¶-spec ls_files(file:filename(),
[no_cache | other | relative | {x, string()}]) -> {ok,
[file:filename()]} |
{error, _}.
Convenience wrapper for git ls-files command. It supports the following options:
otherInclude untracked files (excluding files covered by .gitignore). This option is passes -o to the command.
no_cacheExclude cached files. This option disable passing -c to the command.
relativeReturn relative paths, overriding default behavior where absolute paths within Dir are returned.
{x, WildcardPattern}Exclude untracked files matching the pattern. Can be repeated.
sources_prepared(Repo, Dir, Hash) ¶-spec sources_prepared(Repo :: string(),
Dir :: file:filename(),
Hash :: string()) -> anvl_condition:t().
Condition: repository Repo is cloned to directory Dir, and commit Hash is checked out.