blogit v1.2.3 Blogit.RepositoryProviders.Git View Source
This module implements the Blogit.RepositoryProvider
behaviour.
It provides access to a git repository.
If the git repository is not accessible in the moment the locally checked one will be used and won't be updated.
The URL to the git repository have to be specified using the :blogit
setting
:repository_url
in the configuration.
For the author of a file is used the creator of the file in the git repository. For creation date is used the date of the first commit of the file and for the last update date is used the date of the last commit of the file.
The Blogit.RepositoryProvider.repository/0
implementation does
git pull
before returning the repository representation. The
Blogit.RepositoryProvider.fetch/1
implementation uses git fetch
to check
for deleted, added or updated files.
Link to this section Summary
Functions
Callback implementation for Blogit.RepositoryProvider.fetch/1
.
Callback implementation for Blogit.RepositoryProvider.file_in?/1
.
Callback implementation for Blogit.RepositoryProvider.file_info/2
.
Callback implementation for Blogit.RepositoryProvider.list_files/1
.
Callback implementation for Blogit.RepositoryProvider.local_path/0
.
Callback implementation for Blogit.RepositoryProvider.read_file/2
.
Callback implementation for Blogit.RepositoryProvider.repository/0
.
Link to this section Functions
Callback implementation for Blogit.RepositoryProvider.fetch/1
.
Callback implementation for Blogit.RepositoryProvider.file_in?/1
.
Callback implementation for Blogit.RepositoryProvider.file_info/2
.
Callback implementation for Blogit.RepositoryProvider.list_files/1
.
Callback implementation for Blogit.RepositoryProvider.local_path/0
.
Callback implementation for Blogit.RepositoryProvider.read_file/2
.
Callback implementation for Blogit.RepositoryProvider.repository/0
.