Fixed formatting
This commit is contained in:
parent
768ee2e2fe
commit
b9fe4af3b8
1 changed files with 9 additions and 9 deletions
|
@ -4,15 +4,15 @@ Would it be possible for 'git annex fix' to work even on untracked symlinks (per
|
||||||
|
|
||||||
This would allow me to do stuff like this:
|
This would allow me to do stuff like this:
|
||||||
|
|
||||||
$ cd ~/old_broken_annex
|
$ cd ~/old_broken_annex
|
||||||
$ cp -t ~/other_annex/presentcheck *
|
$ cp -t ~/other_annex/presentcheck *
|
||||||
$ cd ~/other_annex/presentcheck
|
$ cd ~/other_annex/presentcheck
|
||||||
|
|
||||||
### This currently does nothing if the symlinks are untracked
|
### This currently does nothing if the symlinks are untracked
|
||||||
$ git annex fix --force .
|
$ git annex fix --force .
|
||||||
|
|
||||||
$ find -type l -not -xtype l -print0 | xargs -0 git add
|
$ find -type l -not -xtype l -print0 | xargs -0 git add
|
||||||
$ git commit -m "yay, we found some files!"
|
$ git commit -m "yay, we found some files!"
|
||||||
$ find -type l -xtype l -print0 | xargs -0 mv -t ~/files_not_found
|
$ 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)..
|
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)..
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue