repository.pl -- Manage CPACK repositories
- git clone --mirror URL
- git fetch
- cpack_add_repository(+User, +URL, +Options)
- Add a git repository from URL. Fetch the meta-data into a graph
named
cpack:<package>
and add a provenance statement that indicates the creator of the graph. Options include:- branch(Branch)
- Add the given branch rather than the master
- git_check_url(+URL) is det[private]
- Verify that the URL is either git://, http:// or https://. Notaby, avoid SSH URLs that would make the ClioPatria server try ssh connections that would normally not be allowed.
- cpack_update_package(+User, +Package) is det
- Update the given package.
- cpack_update_repository(+User, +URL)[private]
- Update a package
- update_metadata(+BareGitPath, +Graph, +Options) is det[private]
- Update metadata for a repository
- git_export(+BareGitPath, -MirroredURL) is det[private]
- Make sure
git-daemon-export-ok
exists and deduce the URL for cloning usinghttp://
- git_hash(+BareGitPath, +RevSpec, -Hash) is det[private]
- Add a cpack:hash to the repository.
- add_files(+BareGitPath, +Graph, +Options) is det[private]
- Add objects for the files in BareGitPath to Graph.
- process_ignore_files(+BareGitPath, +Graph, +Options)[private]
- Allow for .cpackignore files that specify that certain files should not be analysed.
- load_meta_data(+BareGitPath, +Graph, +Options) is det[private]
- Load the meta-data from the GIT repository BareGitPath into the named graph Graph.
- cpack_refresh_metadata(+BareGitPath) is det
- Regenerate the metadata associated with BareGitPath from the plain (mirrored) git repository.
- cpack_refresh_metadata
- Rebuild all (xref) metadata for all packages from scratch. This is intended to deal with changes to the metadata formats, lost GIT mirrors, etc.
- cpack_clone_server(+User, +Server, +Options)
- Clone all packages from Server.
- clone_package(+User, +PackInfo)[private]
- Clone package from another server.
- http_prolog_data(+URL, -Term) is det[private]
- Read a Prolog term from URL.
- cpack_uri(+Type, +Identifier, -URI) is det
- Create a persistent URI for Identifier of the given Type.
- cpack_our_mirror(+Pack, -Dir) is det
- Dir is the directory holding the bare git repository for Pack.
- cpack_log(+Pack, -ShortLog, Options) is det
- Fetch information like the GitWeb change overview. Processed
options:
- limit(+Count)
- Maximum number of commits to show (default is 10)
- git_path(+Path)
- Only show commits that affect Path
- cpack_show(+Pack, +Hash, -Commit) is det[private]
- Fetch info from a GIT commit. Options processed:
- diff(Diff)
- GIT option on how to format diffs. E.g.
stat
- max_lines(Count)
- Truncate the body at Count lines.
- git_format_string(+Record, -FieldNames, -Format)[private]
- If Record is a record with fields whose names match the GIT
format field-names, Format is a git
--format=
argument with the appropriate format-specifiers, terminated by %x00, which causes the actual field to be 0-terminated.
Undocumented predicates
The following predicates are exported, but not or incorrectly documented.