commitAllChanges
@NotNull
Map<String,String> commitAllChanges(@NotNull
CentralRepositoryConfiguration repositoryConfiguration,
@NotNull
CommitSettings commitSettings,
@NotNull
List<String> ignoredPaths,
@Nullable
RepositoryInitializingExtension.FilesProcessor filesProcessor)
throws VcsException
initialize new repository in specified path and commit all changed files. If repository exists, just commit all changed files
- Parameters:
repositoryUrl
- path to initialize new repository
commitSettings
- commit settings to use in the initial commit
ignoredPaths
- list of paths to ignore and do not include into the initialized repository.
filesProcessor
- processor which allows to commit files separately, see RepositoryInitializingExtension.FilesProcessor.process(Path)
- Returns:
- the map of properties which can be used to create a VcsRoot object to access this repository
- Throws:
VcsException
- if any VCS error occurs