View Source egit (egit v0.1.0)

Link to this section Summary

Functions

Provide content or type and size information for repository objects
Provide content or type and size information for repository objects
Clone a remote repository to the local path
Fetch from origin
Fetch from given remote (e.g. <<"origin">>)
Open a local git repository
Pull from origin
Pull from given remote (e.g. <<"origin">>)

Link to this section Types

-type cat_file_opt() :: type | size | all.
-type commit_opt() ::
    encoding | message | summary | time | time_offset | committer | author | header | tree_id.
-type repository() :: reference().

Link to this section Functions

-spec cat_file(repository(), binary()) -> {ok, term()} | {error, term()}.
Provide content or type and size information for repository objects
Link to this function

cat_file(Repo, File, Opt)

View Source
-spec cat_file(repository(), binary(), cat_file_opt()) -> {ok, term()} | {error, term()}.
Provide content or type and size information for repository objects
-spec clone(binary(), binary()) -> repository().
Clone a remote repository to the local path
Link to this function

commit_lookup(Repo, OID, Opts)

View Source
-spec commit_lookup(repository(), binary(), [commit_opt()]) -> #{commit_opt() => term()}.
-spec fetch(repository()) -> ok | {error, binary()}.
Fetch from origin
-spec fetch(repository(), binary()) -> ok | {error, binary()}.
Fetch from given remote (e.g. <<"origin">>)
-spec open(binary()) -> repository().
Open a local git repository
-spec pull(repository()) -> ok | {error, binary()}.
Pull from origin
-spec pull(repository(), binary()) -> ok | {error, binary()}.
Pull from given remote (e.g. <<"origin">>)