From 60011354f9ac2cb5322e508ac0290b104f92b7cd Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawmWBvsZvSsAL8P2ye3F0OBStjFCVnOImzM" Date: Wed, 3 Dec 2014 21:46:23 +0000 Subject: Added a comment: Properly saving the changes before hard reset..? --- ...ent_3_cf9234339bad14ad9a9d3027f9066936._comment | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 doc/forum/How_to_emulate___34__one-way_sync__34__s_in_a_direct_repo__63__/comment_3_cf9234339bad14ad9a9d3027f9066936._comment 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 + +"""]] -- cgit v1.2.3 From 3c35850809c1acb7c5c72f593b7d663cefb71fac Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawktFJRkdqZvsZB59DrY-N1988HkjSIIZ5w" Date: Wed, 3 Dec 2014 21:56:35 +0000 Subject: Added a comment: More details. --- .../comment_5_4741efcc77b1bf1125ef230a0278ca51._comment | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/bugs/Uninstalling_removes_libcrypto.dll/comment_5_4741efcc77b1bf1125ef230a0278ca51._comment 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. +"""]] -- cgit v1.2.3