summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <id@joeyh.name>2014-12-03 19:01:51 -0400
committerGravatar Joey Hess <id@joeyh.name>2014-12-03 19:01:51 -0400
commit88cf30db1588dd576ce5f2bedec0ff7bca2b144f (patch)
treeeee166c5ec8b7c5f2a51f0bbdc26704876deed3c
parentfc4edb3e9162ec256e183cbac10ef1c3a1787e20 (diff)
parent3c35850809c1acb7c5c72f593b7d663cefb71fac (diff)
Merge branch 'master' of ssh://git-annex.branchable.com
-rw-r--r--doc/bugs/Uninstalling_removes_libcrypto.dll/comment_5_4741efcc77b1bf1125ef230a0278ca51._comment8
-rw-r--r--doc/forum/How_to_emulate___34__one-way_sync__34__s_in_a_direct_repo__63__/comment_3_cf9234339bad14ad9a9d3027f9066936._comment49
2 files changed, 57 insertions, 0 deletions
diff --git a/doc/bugs/Uninstalling_removes_libcrypto.dll/comment_5_4741efcc77b1bf1125ef230a0278ca51._comment b/doc/bugs/Uninstalling_removes_libcrypto.dll/comment_5_4741efcc77b1bf1125ef230a0278ca51._comment
new file mode 100644
index 000000000..06b160ac9
--- /dev/null
+++ b/doc/bugs/Uninstalling_removes_libcrypto.dll/comment_5_4741efcc77b1bf1125ef230a0278ca51._comment
@@ -0,0 +1,8 @@
+[[!comment format=mdwn
+ username="https://www.google.com/accounts/o8/id?id=AItOawktFJRkdqZvsZB59DrY-N1988HkjSIIZ5w"
+ nickname="MichaƂ"
+ subject="More details."
+ date="2014-12-03T21:56:35Z"
+ content="""
+Just to put more info: Yes, I installed git-annex when git been already installed.
+"""]]
diff --git a/doc/forum/How_to_emulate___34__one-way_sync__34__s_in_a_direct_repo__63__/comment_3_cf9234339bad14ad9a9d3027f9066936._comment b/doc/forum/How_to_emulate___34__one-way_sync__34__s_in_a_direct_repo__63__/comment_3_cf9234339bad14ad9a9d3027f9066936._comment
new file mode 100644
index 000000000..3cf454562
--- /dev/null
+++ b/doc/forum/How_to_emulate___34__one-way_sync__34__s_in_a_direct_repo__63__/comment_3_cf9234339bad14ad9a9d3027f9066936._comment
@@ -0,0 +1,49 @@
+[[!comment format=mdwn
+ username="https://www.google.com/accounts/o8/id?id=AItOawmWBvsZvSsAL8P2ye3F0OBStjFCVnOImzM"
+ nickname="Jarno"
+ subject="Properly saving the changes before hard reset..?"
+ date="2014-12-03T21:46:23Z"
+ content="""
+BTW, my complete discard-all-my-changes.sh is, at the moment:
+
+ git annex add .
+ git annex proxy -- git commit -m \"Temp commit: changes to be discarded on $HOSTNAME.\"
+ git annex proxy -- git reset --hard origin/master
+ git annex get
+ git -c core.bare=false clean -dfi
+
+Is that `proxy -- git commit` even the proper way to save the changes locally before discarding, or will the branch change of the proxied commit always lose the annexed data? While testing, I've noticed that `add .` followed by `proxy -- git commit` at least sometimes replaces the contents of the changed file with a hash, with no apparent way to get them back.
+
+Example:
+
+ $ echo \"test string\" >> show-changes.sh
+
+ $ git annex add show-changes.sh
+ add show-changes.sh ok
+ (Recording state in git...)
+
+ $ git annex proxy -- git commit -m \"test\"
+ [annex/direct/master a2a594f] test
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+ $ cat show-changes.sh
+ ..\..\..\..\.git\annex\objects\QG\3J\SHA256E-s313--a05d6ed6cb73f6a95d98606d37e01
+ 4e5b65e86b9fdb8e9fedded7d36a06ea90a.sh\SHA256E-s313--a05d6ed6cb73f6a95d98606d37e
+ 014e5b65e86b9fdb8e9fedded7d36a06ea90a.sh
+
+ $ git annex get show-changes.sh
+ get show-changes.sh (not available)
+ No other repository is known to contain the file.
+ failed
+ git-annex: get: 1 failed
+
+ $ git annex fsck show-changes.sh
+ fsck show-changes.sh (fixing link) ok
+ (Recording state in git...)
+
+ $ cat show-changes.sh
+ .git\annex\objects\QG\3J\SHA256E-s313--a05d6ed6cb73f6a95d98606d37e014e5b65e86b9f
+ db8e9fedded7d36a06ea90a.sh\SHA256E-s313--a05d6ed6cb73f6a95d98606d37e014e5b65e86b
+ 9fdb8e9fedded7d36a06ea90a.sh
+
+"""]]