Module elvis_git

Function Index

branch_files/1
install_hook/0Install a pre commit hook for the git repository in the current dir.
relative_position/2Takes a git patch and an absolute file line number and returns a relative position for that line in the patch.
run_branch/2
run_hook/1
staged_files/0

Function Details

branch_files/1

branch_files(Commit::string()) -> [elvis_file:file()]

install_hook/0

install_hook() -> ok

Install a pre commit hook for the git repository in the current dir.

relative_position/2

relative_position(Patch::binary(), LineNum::integer()) -> {ok, integer()} | not_found

Takes a git patch and an absolute file line number and returns a relative position for that line in the patch.

run_branch/2

run_branch(Commit::string(), Config::elvis_config:configs()) -> ok

run_hook/1

run_hook(Config::elvis_config:configs()) -> ok

staged_files/0

staged_files() -> [elvis_file:file()]


Generated by EDoc