summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawkHTRzRZoBFEDl9XcTfVveW8yO7CTKMg-o <Felix@web>2015-02-04 14:16:14 +0000
committerGravatar admin <admin@branchable.com>2015-02-04 14:16:14 +0000
commitf606f031e5ead79577c226f8d33e9db0f7a1265c (patch)
tree6190d7add1a1304aa540d2d690d414f93124de8c
parent3dee476f2de991c7a713593efccd475ece791548 (diff)
Added a comment: use your own cp
-rw-r--r--doc/todo/wishlist:_use_hardlinks_for_local_clones/comment_3_650ded07dfb4c0c598f6ae649e45760b._comment30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/todo/wishlist:_use_hardlinks_for_local_clones/comment_3_650ded07dfb4c0c598f6ae649e45760b._comment b/doc/todo/wishlist:_use_hardlinks_for_local_clones/comment_3_650ded07dfb4c0c598f6ae649e45760b._comment
new file mode 100644
index 000000000..c2e5fa207
--- /dev/null
+++ b/doc/todo/wishlist:_use_hardlinks_for_local_clones/comment_3_650ded07dfb4c0c598f6ae649e45760b._comment
@@ -0,0 +1,30 @@
+[[!comment format=mdwn
+ username="https://www.google.com/accounts/o8/id?id=AItOawkHTRzRZoBFEDl9XcTfVveW8yO7CTKMg-o"
+ nickname="Felix"
+ subject="use your own cp"
+ date="2015-02-04T14:16:14Z"
+ content="""
+As a workaround one could use another cp. Maybe something like this:
+
+Make an executable shell script \"cp\":
+
+ #!/bin/sh
+
+ p1=\"$1\"
+ shift
+
+ if [ \"$p1\" = '--reflink=auto' ] ; then
+ p1='--link'
+ fi
+
+ exec /bin/cp \"$p1\" \"$@\"
+
+
+And put it into a directory which is found before the \"real\" cp:
+
+ export PATH=/path/to/special/cp/:$PATH
+
+
+This \"cp\" makes a hardlink if the '--reflink=auto' parameter is used (1st).
+
+"""]]