Commit 0728062e authored by Kirill Likhodedov's avatar Kirill Likhodedov
Browse files

began commit process

parent 27c4673b
Showing with 25 additions and 8 deletions
+25 -8
......@@ -2,7 +2,6 @@
package chm
import com.intellij.openapi.vcs.CheckinProjectPanel
import com.intellij.openapi.vcs.changes.Change
import com.intellij.openapi.vcs.changes.CommitExecutor
import com.intellij.openapi.vcs.checkin.CheckinHandler
import com.intellij.openapi.vcs.checkin.VcsCheckinHandlerFactory
......@@ -56,10 +55,3 @@ class MyCheckinHandler(panel: CheckinProjectPanel) : CheckinHandler() {
}
}
class MyCommitProcess : GitCheckinEnvironment.OverridingCommitProcedure {
override fun commit(changes: List<Change>, message: String) {
}
}
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package chm
import com.intellij.openapi.vcs.changes.Change
import com.intellij.openapi.vcs.changes.ChangesUtil
import git4idea.checkin.GitCheckinEnvironment
class MyCommitProcess : GitCheckinEnvironment.OverridingCommitProcedure {
override fun commit(changes: List<Change>, message: String) {
// TODO deleted
val ancestor = ChangesUtil.findCommonAncestor(changes)
// get history for ancestor
// find latest label "commit changes"
// get all changes made after "commit changes"
// extract refactorings from them
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment