@Signature public Memory status(@Nullable Set<String> paths, ArrayMemory settings) throws GitAPIException { StatusCommand status = getWrappedObject().status(); if (paths != null) { for (String path : paths) { status.addPath(path); } } if (settings != null && settings.isNotNull()) { if (settings.containsKey("ignoreSubmoduleMode")) { status.setIgnoreSubmodules(SubmoduleWalk.IgnoreSubmoduleMode.valueOf(settings.valueOfIndex("ignoreSubmoduleMode").toString())); } } Status call = status.call(); return GitUtils.valueOf(call); }
public Status getStatus(String path) throws Exception { fetch(); StatusCommand sc = git.status(); if (path != null) sc.addPath(path); return sc.call(); }
@Override protected void run() throws Exception { StatusCommand statusCommand = new Git(db).status(); if (filterPaths != null && filterPaths.size() > 0) for (String path : filterPaths) statusCommand.addPath(path); org.eclipse.jgit.api.Status status = statusCommand.call(); printStatus(status); }
String repoRelativePath = pathResolver.relativize(file); Status status = new Git(repository).status().addPath(repoRelativePath).call(); if (!status.isClean()) {
String repoRelativePath = pathResolver.relativize(file); Status status = new Git(repository).status().addPath(repoRelativePath).call(); if (!status.isClean()) {
Status status = git.status().addPath(path).call(); for (String untracked : status.getUntracked()) { if (!untracked.startsWith(path + "/Archive/"))