Bastian Blank wrote:
> Package: git-annex
> Version: 3.20110707
> Severity: normal
> 
> git annex unannex is documented as the reversal of add.
> It does not work:
> 
> | $ git annex init test     
> | init test ok
> | $ cp /etc/motd . 
> | $ git annex add motd
> | add motd ok
> | (Recording state in git...)
> | $ git annex unannex motd
> | git-annex: This command cannot be run when there are already files staged 
> for commit.
> 
> After a unstage, it is completely silent:
> 
> | $ git rm --cached motd
> | rm 'motd'
> | $ git status          
> | # On branch master
> | #
> | # Initial commit
> | #
> | # Untracked files:
> | #   (use "git add <file>..." to include in what will be committed)
> | #
> | #       motd
> | nothing added to commit but untracked files present (use "git add" to track)
> | $ git annex unannex motd
> | $ ls -l 
> | total 0
> | lrwxrwxrwx 1 bastian bastian 80 18. Jul 20:55 motd -> 
> .git/annex/objects/94/7P/WORM-s375-m1311015311--motd/WORM-s375-m1311015311--motd

git-annex only works on files that are present in git (except for add of
course), so you have to commit the file to git before it can be
unannexed.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to