Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
2700069d
Commit
2700069d
authored
Jun 30, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --remove-sender-files and deprecated --remove-sent-files.
parent
044ccbaa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
options.c
options.c
+9
-6
No files found.
options.c
View file @
2700069d
...
...
@@ -65,7 +65,7 @@ int delete_during = 0;
int
delete_before
=
0
;
int
delete_after
=
0
;
int
delete_excluded
=
0
;
int
remove_sen
t
_files
=
0
;
int
remove_sen
der
_files
=
0
;
int
one_file_system
=
0
;
int
protocol_version
=
PROTOCOL_VERSION
;
int
sparse_files
=
0
;
...
...
@@ -321,7 +321,7 @@ void usage(enum logcode F)
rprintf
(
F
,
" --rsync-path=PROGRAM specify the rsync to run on the remote machine
\n
"
);
rprintf
(
F
,
" --existing skip creating new files on receiver
\n
"
);
rprintf
(
F
,
" --ignore-existing skip updating files that already exist on receiver
\n
"
);
rprintf
(
F
,
" --remove-sen
t-files sender removes successfully sent
files (non-dirs)
\n
"
);
rprintf
(
F
,
" --remove-sen
der-files sender removes synchronized
files (non-dirs)
\n
"
);
rprintf
(
F
,
" --del an alias for --delete-during
\n
"
);
rprintf
(
F
,
" --delete delete extraneous files from destination dirs
\n
"
);
rprintf
(
F
,
" --delete-before receiver deletes before transfer (default)
\n
"
);
...
...
@@ -475,7 +475,8 @@ static struct poptOption long_options[] = {
{
"delete-during"
,
0
,
POPT_ARG_NONE
,
&
delete_during
,
0
,
0
,
0
},
{
"delete-after"
,
0
,
POPT_ARG_NONE
,
&
delete_after
,
0
,
0
,
0
},
{
"delete-excluded"
,
0
,
POPT_ARG_NONE
,
&
delete_excluded
,
0
,
0
,
0
},
{
"remove-sent-files"
,
0
,
POPT_ARG_NONE
,
&
remove_sent_files
,
0
,
0
,
0
},
{
"remove-sent-files"
,
0
,
POPT_ARG_VAL
,
&
remove_sender_files
,
2
,
0
,
0
},
/* deprecated */
{
"remove-sender-files"
,
0
,
POPT_ARG_VAL
,
&
remove_sender_files
,
1
,
0
,
0
},
{
"force"
,
0
,
POPT_ARG_NONE
,
&
force_delete
,
0
,
0
,
0
},
{
"ignore-errors"
,
0
,
POPT_ARG_NONE
,
&
ignore_errors
,
0
,
0
,
0
},
{
"max-delete"
,
0
,
POPT_ARG_INT
,
&
max_delete
,
0
,
0
,
0
},
...
...
@@ -1204,8 +1205,8 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
return
0
;
}
if
(
remove_sen
t
_files
)
{
/* We only want to infer this refusal of --remove-sen
t
-files
if
(
remove_sen
der
_files
)
{
/* We only want to infer this refusal of --remove-sen
der
-files
* via the refusal of "delete", not any of the "delete-FOO"
* options. */
if
(
refused_delete
&&
am_sender
)
{
...
...
@@ -1756,7 +1757,9 @@ void server_options(char **args,int *argc)
if
(
fuzzy_basis
&&
am_sender
)
args
[
ac
++
]
=
"--fuzzy"
;
if
(
remove_sent_files
)
if
(
remove_sender_files
==
1
)
args
[
ac
++
]
=
"--remove-sender-files"
;
else
if
(
remove_sender_files
)
args
[
ac
++
]
=
"--remove-sent-files"
;
*
argc
=
ac
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment