summaryrefslogtreecommitdiff
path: root/doc/todo/__34__git-annex_fix__34___on_untracked__44___but_git-annexy_symlinks.mdwn
blob: 80d5a3d251235e458f0bb82282a3d5327adbe281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)..

> Per my comment, this is not a good idea, so [[done]] --[[Joey]]