diff options
author | bremner <bremner@web> | 2012-10-17 20:32:12 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2012-10-17 20:32:12 +0000 |
commit | f4278da8e231557f4b40beea1956944378b1ae69 (patch) | |
tree | ba1b64cb998a05f1b851c6f2c2009e3bc0eea3b3 /doc | |
parent | 248e0d96aa444234db72aa0d7824cc018c4f8277 (diff) |
Added a comment: finding data that isn't unused, but should be.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/walkthrough/unused_data/comment_1_684b7b652d3a8ec04f32129c5528f1ab._comment | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/walkthrough/unused_data/comment_1_684b7b652d3a8ec04f32129c5528f1ab._comment b/doc/walkthrough/unused_data/comment_1_684b7b652d3a8ec04f32129c5528f1ab._comment new file mode 100644 index 000000000..cb2324703 --- /dev/null +++ b/doc/walkthrough/unused_data/comment_1_684b7b652d3a8ec04f32129c5528f1ab._comment @@ -0,0 +1,24 @@ +[[!comment format=mdwn + username="bremner" + ip="156.34.89.108" + subject="finding data that isn't unused, but should be." + date="2012-10-17T20:32:11Z" + content=""" +Sometimes links to annexed data still exists on some branch, when it was supposed to be dropped. Here is how I found these; perhaps there is a simpler way. + + % git annex find --format '${key}\n' > /tmp/known-keys + % find .git/annex/objects -type f -exec basename {} \; > /tmp/local-keys + % comm -23 /tmp/local-keys /tmp/known-keys + +to look for what branch these are on, try + + % git log --stat --all -S$key + +for one of the keys output above. In my case it was the same remote branch keeping them all alive. + + + + + + +"""]] |