GitCommandResult (final @NotNull GitRepository repository, final @NotNull Collection<String> attributes, @NotNull Collection<? extends VirtualFile> files) { List<String> relativeFilePaths = ContainerUtil.map(files, file -> VcsFileUtil.relativePath(repository.getRoot(), file)); final GitLineHandler h = new GitLineHandler(repository.getProject(), repository.getRoot(), GitCommand.CHECK_ATTR); h.addParameters("--stdin"); h.addParameters(new ArrayList<>(attributes)); h.endOptions(); h.setInputProcessor(GitHandlerInputProcessorUtil.writeLines(relativeFilePaths, h.getCharset())); return runCommand(h); }