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

@ -87,6 +87,6 @@ cleanup file key = do
force <- Annex.getState Annex.force
if force
then AnnexQueue.add "add" [Param "-f", Param "--"] file
else AnnexQueue.add "add" [Param "--"] file
then AnnexQueue.add "add" [Param "-f", Param "--"] [file]
else AnnexQueue.add "add" [Param "--"] [file]
return True