]> dgit.raspbian.org Git - git-annex.git/commitdiff
Added a comment
authormuks@6bded6d879d80c43cdf4893fabb785876eea0a7b <muks@web>
Fri, 11 Dec 2020 02:18:30 +0000 (02:18 +0000)
committeradmin <admin@branchable.com>
Fri, 11 Dec 2020 02:18:30 +0000 (02:18 +0000)
doc/forum/Way_to_copy_files___40__the_symbolic_links__41__/comment_1_5f452eeb652e1bbec54cddc3735a6d4a._comment [new file with mode: 0644]

diff --git a/doc/forum/Way_to_copy_files___40__the_symbolic_links__41__/comment_1_5f452eeb652e1bbec54cddc3735a6d4a._comment b/doc/forum/Way_to_copy_files___40__the_symbolic_links__41__/comment_1_5f452eeb652e1bbec54cddc3735a6d4a._comment
new file mode 100644 (file)
index 0000000..0ad2a90
--- /dev/null
@@ -0,0 +1,17 @@
+[[!comment format=sh
+ username="muks@6bded6d879d80c43cdf4893fabb785876eea0a7b"
+ nickname="muks"
+ avatar="http://cdn.libravatar.org/avatar/2bb3204407446ec2adfe5c41be26cc1e"
+ subject="comment 1"
+ date="2020-12-11T02:18:29Z"
+ content="""
+# What I want is achieved by this longer command:
+
+ln -s $(realpath --relative-to=. $(readlink -m $FILE_SRC)) $FILE_DEST && \
+     git add $FILE_DEST
+
+# Instead, a git annex command to perform the above with
+# the following syntax would be useful:
+
+git annex ln $FILE_SRC $FILE_DEST
+"""]]