@Override
		public void run(TaskMonitor monitor) {
			try {
				for (DomainFile df : list) {
					String name = df.getName();
					monitor.setMessage("Adding " + name + " to Version Control");

					if (actionID != VersionControlDialog.APPLY_TO_ALL) {
						showDialog(true, df);
					}
					if (actionID == VersionControlDialog.CANCEL) {
						return;
					}

					// Note: this used to be a sleep(200) 
					Swing.allowSwingToProcessEvents();

					df.addToVersionControl(comments, keepCheckedOut, monitor);
				}
			}
			catch (CancelledException e) {
				Msg.info(this, "Add to Version Control was canceled");
			}
			catch (IOException e) {
				ClientUtil.handleException(repository, e, "Add to Version Control",
					tool.getToolFrame());
			}
		}
Task for adding files to version control. This task displays a dialog for each file 
which allows a comment to be entered for each check-in.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/projectdata/actions/VersionControlAddAction.java