anchor.diff:      // TODO(grv): Add verify checks.
       _GitCommitJob commitJob = new _GitCommitJob(gitOperations, _gitName, _gitEmail,
           _commitMessageElement.value, spark);
  -    return spark.jobManager.schedule(commitJob).then((_) {
  +    return spark.jobManager.schedule(commitJob).whenComplete(() {
         _restoreDialog();
         _hide();
       });
  
positive.code:     addedFileList.clear();
      deletedFileList.clear();
      SparkDialogButton commitButton = getElement('#gitCommit');
      commitButton.disabled = false;
      commitButton.deliverChanges();
      spark.syncPrefs.getValue("git-user-info").then((String value) {
        _gitName = null;
        _gitEmail = null;
  
negative.code:     final int addedCnt = addedFileList.length;
      final int deletedCnt = deletedFileList.length;
  
      SparkDialogButton commitButton = getElement('#gitCommit');
      if (modifiedCnt + addedCnt + deletedCnt == 0) {
        _gitStatusElement.text = "Nothing to commit.";
        commitButton.disabled = true;
        commitButton.deliverChanges();
      } else {
        commitButton.disabled = false;
        commitButton.deliverChanges();
        _gitStatusElement.text =
            '$modifiedCnt ${(modifiedCnt != 1) ? 'files' : 'file'} modified, ' +
            '$addedCnt ${(addedCnt != 1) ? 'files' : 'file'} added, ' +
  