From ea9ba6eae3f7585613404a2ecc778159958031ff Mon Sep 17 00:00:00 2001 From: mct Date: Wed, 14 Jan 2015 08:34:31 +0000 Subject: [PATCH 1/8] creating git annex assistant repository history? --- .../git_annex_assistant_repository_history__63__.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 doc/forum/git_annex_assistant_repository_history__63__.mdwn diff --git a/doc/forum/git_annex_assistant_repository_history__63__.mdwn b/doc/forum/git_annex_assistant_repository_history__63__.mdwn new file mode 100644 index 0000000000..d357b78876 --- /dev/null +++ b/doc/forum/git_annex_assistant_repository_history__63__.mdwn @@ -0,0 +1,7 @@ +Hi, + +Even after googling for a while, I'm still having a hard time finding an answer for this: + +How can I access the revision history information for an annex-assistant repository? For example, to recover a file on one computer that another computer deleted. Or, to view how another computer modified a file. + +Thanks! From e8571a15e49ff7c4396b3a0fa3342a85a22d1bfd Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawnwNDA50ZupMvOgpgDqzDRyu5B-mYlVwa4" Date: Wed, 14 Jan 2015 15:32:24 +0000 Subject: [PATCH 2/8] --- ...direct_-__62___rename:_does_not_exist.mdwn | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/bugs/git_annex_direct_-__62___rename:_does_not_exist.mdwn diff --git a/doc/bugs/git_annex_direct_-__62___rename:_does_not_exist.mdwn b/doc/bugs/git_annex_direct_-__62___rename:_does_not_exist.mdwn new file mode 100644 index 0000000000..a8f1fc59a9 --- /dev/null +++ b/doc/bugs/git_annex_direct_-__62___rename:_does_not_exist.mdwn @@ -0,0 +1,25 @@ +### Please describe the problem. + +git annex direct displays warnings(?) +### What steps will reproduce the problem? +mkdir test +cd test +git init +git annex init +touch foobar.txt +git annex add +git annex direct + + +### What version of git-annex are you using? On what operating system? +5.20140717 (ubuntu 14.10) + +### Please provide any additional information below. + +[[!format sh """ +# If you can, paste a complete transcript of the problem occurring here. +# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log + + +# End of transcript or log. +"""]] From 2edb51fe6ea621ca94660241bf9c06afeee30aa1 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawnwNDA50ZupMvOgpgDqzDRyu5B-mYlVwa4" Date: Wed, 14 Jan 2015 15:33:35 +0000 Subject: [PATCH 3/8] --- ...nnex_direct_-__62___rename:_does_not_exist.mdwn | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/bugs/git_annex_direct_-__62___rename:_does_not_exist.mdwn b/doc/bugs/git_annex_direct_-__62___rename:_does_not_exist.mdwn index a8f1fc59a9..332ea4357d 100644 --- a/doc/bugs/git_annex_direct_-__62___rename:_does_not_exist.mdwn +++ b/doc/bugs/git_annex_direct_-__62___rename:_does_not_exist.mdwn @@ -2,13 +2,13 @@ git annex direct displays warnings(?) ### What steps will reproduce the problem? -mkdir test -cd test -git init -git annex init -touch foobar.txt -git annex add -git annex direct + mkdir test + cd test + git init + git annex init + touch foobar.txt + git annex add + git annex direct ### What version of git-annex are you using? On what operating system? From 6b5fe0ff53c3ae9bec68ed06ee9f5329625cac99 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawmiPEySoakXDQ4OUAmC9neEOZW17W1KvlU" Date: Wed, 14 Jan 2015 15:45:46 +0000 Subject: [PATCH 4/8] Added a comment: Default value of annex.queuesize --- ...mment_1_a6656ae397277719d67d0953a28fe1d8._comment | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/scalability/comment_1_a6656ae397277719d67d0953a28fe1d8._comment diff --git a/doc/scalability/comment_1_a6656ae397277719d67d0953a28fe1d8._comment b/doc/scalability/comment_1_a6656ae397277719d67d0953a28fe1d8._comment new file mode 100644 index 0000000000..5c0038e807 --- /dev/null +++ b/doc/scalability/comment_1_a6656ae397277719d67d0953a28fe1d8._comment @@ -0,0 +1,12 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawmiPEySoakXDQ4OUAmC9neEOZW17W1KvlU" + nickname="Francesco Saverio" + subject="Default value of annex.queuesize" + date="2015-01-14T15:45:46Z" + content=""" +What is the default value of : + + annex.queuesize + +Without knowing the default value it is impossible to increase it :) thank you +"""]] From 91b7fda130a8080f0c81c0b756308e9ddcd345a4 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawk9SYh6N-JUMkYkW4aOk55zC3Vr9KonDV4" Date: Wed, 14 Jan 2015 21:56:34 +0000 Subject: [PATCH 5/8] Added a comment --- ...nt_2_a1d19e9a2fab32492018d8748e864f2b._comment | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/forum/Copying_and_dropping_right_after/comment_2_a1d19e9a2fab32492018d8748e864f2b._comment diff --git a/doc/forum/Copying_and_dropping_right_after/comment_2_a1d19e9a2fab32492018d8748e864f2b._comment b/doc/forum/Copying_and_dropping_right_after/comment_2_a1d19e9a2fab32492018d8748e864f2b._comment new file mode 100644 index 0000000000..1aa58ec26e --- /dev/null +++ b/doc/forum/Copying_and_dropping_right_after/comment_2_a1d19e9a2fab32492018d8748e864f2b._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawk9SYh6N-JUMkYkW4aOk55zC3Vr9KonDV4" + nickname="Florian" + subject="comment 2" + date="2015-01-14T21:56:34Z" + content=""" +Sorry for the late reply. I had redone my git-annex repos, but I just had exactly this behaviour again + +% git annex wanted astarte :( +standard +% git annex group astarte +transfer + +Best Regards... +"""]] From b96b36e73c350796de88f28fa597305dc4fd0215 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawk9SYh6N-JUMkYkW4aOk55zC3Vr9KonDV4" Date: Wed, 14 Jan 2015 22:00:24 +0000 Subject: [PATCH 6/8] removed --- ...nt_2_a1d19e9a2fab32492018d8748e864f2b._comment | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 doc/forum/Copying_and_dropping_right_after/comment_2_a1d19e9a2fab32492018d8748e864f2b._comment diff --git a/doc/forum/Copying_and_dropping_right_after/comment_2_a1d19e9a2fab32492018d8748e864f2b._comment b/doc/forum/Copying_and_dropping_right_after/comment_2_a1d19e9a2fab32492018d8748e864f2b._comment deleted file mode 100644 index 1aa58ec26e..0000000000 --- a/doc/forum/Copying_and_dropping_right_after/comment_2_a1d19e9a2fab32492018d8748e864f2b._comment +++ /dev/null @@ -1,15 +0,0 @@ -[[!comment format=mdwn - username="https://www.google.com/accounts/o8/id?id=AItOawk9SYh6N-JUMkYkW4aOk55zC3Vr9KonDV4" - nickname="Florian" - subject="comment 2" - date="2015-01-14T21:56:34Z" - content=""" -Sorry for the late reply. I had redone my git-annex repos, but I just had exactly this behaviour again - -% git annex wanted astarte :( -standard -% git annex group astarte -transfer - -Best Regards... -"""]] From 656756c07f73a29d5f02c65baea1a39cc81c772a Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawk9SYh6N-JUMkYkW4aOk55zC3Vr9KonDV4" Date: Wed, 14 Jan 2015 22:01:24 +0000 Subject: [PATCH 7/8] Added a comment --- ...nt_2_87a14d14014aefc33f811bb15ea27e13._comment | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/forum/Copying_and_dropping_right_after/comment_2_87a14d14014aefc33f811bb15ea27e13._comment diff --git a/doc/forum/Copying_and_dropping_right_after/comment_2_87a14d14014aefc33f811bb15ea27e13._comment b/doc/forum/Copying_and_dropping_right_after/comment_2_87a14d14014aefc33f811bb15ea27e13._comment new file mode 100644 index 0000000000..b58b61a757 --- /dev/null +++ b/doc/forum/Copying_and_dropping_right_after/comment_2_87a14d14014aefc33f811bb15ea27e13._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawk9SYh6N-JUMkYkW4aOk55zC3Vr9KonDV4" + nickname="Florian" + subject="comment 2" + date="2015-01-14T22:01:24Z" + content=""" +Sorry for the late reply. I had redone my git-annex repos, but I just had exactly this behaviour again + + % git annex wanted astarte + standard + % git annex group astarte + transfer + +Best Regards... +"""]] From ddf43ebfc79940bac337139cf692c25e72fe0ec0 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawnWvnTWY6LrcPB4BzYEBn5mRTpNhg5EtEg" Date: Thu, 15 Jan 2015 16:15:21 +0000 Subject: [PATCH 8/8] Added a comment --- ..._bfb4758fdb2a4afafd9c4d45de5c5c6b._comment | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__/comment_4_bfb4758fdb2a4afafd9c4d45de5c5c6b._comment diff --git a/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__/comment_4_bfb4758fdb2a4afafd9c4d45de5c5c6b._comment b/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__/comment_4_bfb4758fdb2a4afafd9c4d45de5c5c6b._comment new file mode 100644 index 0000000000..de2a279a72 --- /dev/null +++ b/doc/forum/how_to_prevent_accidentally_running___96__git_add__96____63__/comment_4_bfb4758fdb2a4afafd9c4d45de5c5c6b._comment @@ -0,0 +1,28 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawnWvnTWY6LrcPB4BzYEBn5mRTpNhg5EtEg" + nickname="Bence" + subject="comment 4" + date="2015-01-15T16:15:21Z" + content=""" +Based on the above, I'm using this script in the `pre-commit` hook. + +It gets the staged files and checks if they are links or not. If a file being committed is not a link (maybe it was added with `git add filename` ???), the script aborts the commit. + + #!/bin/sh + + # Don't allow files to be added to the normal repo. + stagedfiles=$(git diff --cached --name-only); + echo \"$stagedfiles\" | while IFS= read -r file; do + if [ ! -L \"$file\" ]; then + echo \"[Error] The file \\"$file\\" should not be added to the repo.\"; + echo \"#Remove from the index and add with git-annex:\"; + echo \"\$ git rm --cached \\"$file\\" && git annex add \\"$file\\"\"; + exit 1; + #else + # echo \"OK : $file\"; + fi; + done; + + # automatically configured by git-annex + git annex pre-commit . +"""]]