Package org.nbgit

Examples of org.nbgit.GitModuleConfig


                throw new RuntimeException("Invalid action status: " + actionStatus); // NOI18N
        }
    }

    public int getActionStatus(VCSContext ctx) {
        GitModuleConfig config = GitModuleConfig.getDefault();
        int status = UNDEFINED;
        if (ctx == null) {
            ctx = context;
        }
        Set<File> files = ctx.getRootFiles();
        for (File file : files) {
            if (config.isExcludedFromCommit(file.getAbsolutePath())) {
                if (status == EXCLUDING) {
                    return UNDEFINED;
                }
                status = INCLUDING;
            } else {
View Full Code Here


        final VCSContext ctx = context;
        RequestProcessor rp = Git.getInstance().getRequestProcessor();
        GitProgressSupport support = new GitProgressSupport() {

            public void perform() {
                GitModuleConfig config = GitModuleConfig.getDefault();
                int status = getActionStatus(ctx);
                Set<File> files = ctx.getRootFiles();
                List<String> paths = new ArrayList<String>(files.size());
                for (File file : files) {
                    paths.add(file.getAbsolutePath());
                }
                if (isCanceled()) {
                    return;
                }
                if (status == EXCLUDING) {
                    config.addExclusionPaths(paths);
                } else if (status == INCLUDING) {
                    config.removeExclusionPaths(paths);
                }
            }
        };
        support.start(rp, "", ""); // NOI18N
    }
View Full Code Here

TOP

Related Classes of org.nbgit.GitModuleConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.