git-cms-addpkg: clean up unused variables
limit the check of the local tree to the index (staged but not committed files)
Merge pull request #70 from fwyzard/check-status-before-merge-v3

Check status before merge v3