summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar CandyAngel <CandyAngel@web>2015-03-27 12:03:47 +0000
committerGravatar admin <admin@branchable.com>2015-03-27 12:03:47 +0000
commit661042ad36cb9409a98df2a3ee21eec31f7a17e6 (patch)
treec303d8577aff70eb0411918bc4808b2c1bf66ddb /doc
parent1edff7386040672287c3d3396356d111e8c745b5 (diff)
Diffstat (limited to 'doc')
-rw-r--r--doc/todo/__34__git-annex_fix__34___on_untracked__44___but_git-annexy_symlinks.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/todo/__34__git-annex_fix__34___on_untracked__44___but_git-annexy_symlinks.mdwn b/doc/todo/__34__git-annex_fix__34___on_untracked__44___but_git-annexy_symlinks.mdwn
new file mode 100644
index 000000000..4b610b1c2
--- /dev/null
+++ b/doc/todo/__34__git-annex_fix__34___on_untracked__44___but_git-annexy_symlinks.mdwn
@@ -0,0 +1,18 @@
+In my quest to get git-annex to do what I want, even if it is weird and unusual..
+
+Would it be possible for 'git annex fix' to work even on untracked symlinks (perhaps only with '--force'?), where the symlink is otherwise in a git-annexy format?
+
+This would allow me to do stuff like this:
+
+ $ cd ~/old_broken_annex
+ $ cp -t ~/other_annex/presentcheck *
+ $ cd ~/other_annex/presentcheck
+
+ ### This currently does nothing if the symlinks are untracked
+ $ git annex fix --force .
+
+ $ find -type l -not -xtype l -print0 | xargs -0 git add
+ $ git commit -m "yay, we found some files!"
+ $ find -type l -xtype l -print0 | xargs -0 mv -t ~/files_not_found
+
+Admittedly, to do this now, you just have to stage the symlinks before you fix but there may be other situations where this is useful (and I can't think of anything else you would want 'fix --force' to do)..