Package com.intellij.openapi.vcs.changes

Examples of com.intellij.openapi.vcs.changes.SimpleContentRevision


            Change change = changes.get(addedFile);
            ContentRevision beforeRevision = null;
            if (change.getType().equals(Change.Type.MODIFICATION)) {
                ContentRevision changeBeforeRevision = change.getBeforeRevision();
                assert changeBeforeRevision != null;
                beforeRevision = new SimpleContentRevision(
                        changeBeforeRevision.getContent(),
                        changeBeforeRevision.getFile(),
                        baseHash);
            }
            diff.add(new Change(beforeRevision, change.getAfterRevision()));
View Full Code Here


            Change baseChange = baseChanges.get(removedFile);
            ContentRevision afterRevision = null;
            if (baseChange.getType().equals(Change.Type.MODIFICATION)) {
                ContentRevision baseChangeBeforeRevision = baseChange.getBeforeRevision();
                assert baseChangeBeforeRevision != null;
                afterRevision = new SimpleContentRevision(
                        baseChangeBeforeRevision.getContent(),
                        baseChangeBeforeRevision.getFile(),
                        hash
                );
            }
View Full Code Here

            public FileType getFileType() {
                return PlainTextFileType.INSTANCE;
            }
        };

        changes.add(new Change(null, new SimpleContentRevision(
                content,
                commitMsg,
                gitCommit.getHash().getValue()
        )));
        return changes;
View Full Code Here

TOP

Related Classes of com.intellij.openapi.vcs.changes.SimpleContentRevision

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.