Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git_borg_linker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Hub
git_borg_linker
Commits
d9008695
Commit
d9008695
authored
3 years ago
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/init.rs: add mode parameter in init_and_hook function
parent
01242b85
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/init.rs
+3
-2
3 additions, 2 deletions
src/init.rs
with
3 additions
and
2 deletions
src/init.rs
+
3
−
2
View file @
d9008695
...
@@ -73,9 +73,10 @@ fn init_repository() {
...
@@ -73,9 +73,10 @@ fn init_repository() {
/// # Arguments:
/// # Arguments:
/// * `hooks`: a boolean indicating wether or not to create hooks
/// * `hooks`: a boolean indicating wether or not to create hooks
/// * `compression`: The compression used automatically after each commit. This parameter is only used if hooks is true.
/// * `compression`: The compression used automatically after each commit. This parameter is only used if hooks is true.
pub
fn
init_and_hook
(
hooks
:
bool
,
compression
:
&
str
)
{
/// * `mode`: The checkout mode used by gblk automatically after a git checkout: soft or hard.
pub
fn
init_and_hook
(
hooks
:
bool
,
compression
:
&
str
,
mode
:
&
str
)
{
init_repository
();
init_repository
();
if
hooks
{
if
hooks
{
create_hooks
::
create_hooks
(
compression
);
create_hooks
::
create_hooks
(
compression
,
mode
);
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment