Skip to content

Commit a4a55b8

Browse files
committed
Allow easy hacking
1 parent 0371337 commit a4a55b8

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

git_xy.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@ __last_error() {
251251
}
252252

253253
# A simple wrapper for rsync.
254+
# The method is invoked as below:
255+
#
256+
# git_xy_rsync \
257+
# "$src_local_full_path/$src_path" \
258+
# "$dst_local_full_path/$dst_path" \
259+
# -rap \
260+
# $rsync_opts \
261+
# --exclude=".git/*" \
254262
git_xy_rsync() {
255263
rsync "${@}"
256264
}
@@ -384,11 +392,12 @@ git_xy() {
384392
# FIXED: as we may want to grab some configuration file (rsync_opts)
385393
# FIXME: Better quoting handle for `rsync_opts`
386394
# shellcheck disable=SC2086
387-
git_xy_rsync -rap \
388-
$rsync_opts \
389-
--exclude=".git/*" \
395+
git_xy_rsync \
390396
"$src_local_full_path/$src_path" \
391397
"$dst_local_full_path/$dst_path" \
398+
-rap \
399+
$rsync_opts \
400+
--exclude=".git/*" \
392401
|| {
393402
last_error="ERROR: Failed to executed rsync command."
394403
continue

0 commit comments

Comments
 (0)