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
243ebc25
Verified
Commit
243ebc25
authored
2 years ago
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/main.rs: update main.rs function
parent
13c70c37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.rs
+16
-1
16 additions, 1 deletion
src/main.rs
with
16 additions
and
1 deletion
src/main.rs
+
16
−
1
View file @
243ebc25
...
...
@@ -336,6 +336,21 @@ struct Pull {
struct
Clone
{
/// The path pointing to a borg folder
path
:
String
,
/// If specified, hooks are created inside `.git/hooks repository`
#[clap(takes_value
=
false
,
short
=
'H'
,
long)]
hooks
:
bool
,
/// The compression to use automatically at each commit if hooks are created
#[clap(short,
long,
default_value
=
"lz4"
,
value_name
=
"COMPRESSION"
)]
compression
:
String
,
/// The checkout mode used by gblk automatically after a git checkout: soft or hard.
/// This option is only used if hooks are created.
/// The hard mode will delete every file in your results folder and extract
/// those corresponding to the commit targeted by the checkout.
///
/// The soft mode will only update files that existed in the targeted checkout
#[clap(short,
long,
default_value
=
"hard"
,
value_name
=
"MODE"
)]
mode
:
String
,
}
fn
main
()
{
...
...
@@ -431,7 +446,7 @@ fn main() {
restore
::
restore
();
}
Commands
::
Clone
(
c
)
=>
{
clone
::
clone
(
&
c
.path
);
clone
::
clone
(
&
c
.path
,
c
.hooks
,
&
c
.compression
,
&
c
.mode
);
}
}
}
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