Skip to content
Snippets Groups Projects
Commit 02bb8285 authored by nfontrod's avatar nfontrod
Browse files

src/create_hooks.rs: update documentation comments

parent 2ea8fe4b
No related branches found
No related tags found
No related merge requests found
...@@ -77,9 +77,12 @@ fn create_file(folder: &PathBuf, file_name: &str, content: &str) { ...@@ -77,9 +77,12 @@ fn create_file(folder: &PathBuf, file_name: &str, content: &str) {
/// Create 3 files in `.git/hooks` folder /// Create 3 files in `.git/hooks` folder
/// ///
/// 1. Create pre-commit hook /// 1. Create post-commit hook
/// 2. Create pre-checkout hook /// 2. Create pre-checkout hook
/// 3. Create post-checkout hook /// 3. Create post-checkout hook
///
/// # Arguments
/// * `compression`: The compression that will automatically be used to save the results folder (no, lz4, zstd, zlib or lzma) after a git commit
pub fn create_hooks(compression: &str) { pub fn create_hooks(compression: &str) {
let git_folder = get_hooks_folder(); let git_folder = get_hooks_folder();
let pre_commit_cmd = format!("gbl commit --compression {}", &compression); let pre_commit_cmd = format!("gbl commit --compression {}", &compression);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment