unannex: Clean up use of git commit -a.

This was more complex than would be expected. unannex has to use git commit -a
since it's removing files from git; git commit filelist won't do.

Allow commands to be added to the Git queue that have no associated files,
and run such commands once.
This commit is contained in:
Joey Hess 2011-07-14 16:56:06 -04:00
parent 0c46cbab09
commit ded2591124
10 changed files with 26 additions and 20 deletions

View file

@ -33,5 +33,5 @@ perform file = do
-- Checkout from HEAD to get rid of any changes that might be
-- staged in the index, and get back to the previous symlink to
-- the content.
AnnexQueue.add "checkout" [Param "HEAD", Param "--"] file
AnnexQueue.add "checkout" [Param "HEAD", Param "--"] [file]
next $ return True -- no cleanup needed