Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
0728062e
Commit
0728062e
authored
6 years ago
by
Kirill Likhodedov
Browse files
Options
Download
Email Patches
Plain Diff
began commit process
parent
27c4673b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/hack18-clean-history/src/chm/ChmCheckinHandlerFactory.kt
+0
-8
.../hack18-clean-history/src/chm/ChmCheckinHandlerFactory.kt
plugins/hack18-clean-history/src/chm/ChmCommitProcess.kt
+25
-0
plugins/hack18-clean-history/src/chm/ChmCommitProcess.kt
with
25 additions
and
8 deletions
+25
-8
plugins/hack18-clean-history/src/chm/ChmCheckinHandlerFactory.kt
+
0
-
8
View file @
0728062e
...
...
@@ -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
)
{
}
}
This diff is collapsed.
Click to expand it.
plugins/hack18-clean-history/src/chm/ChmCommitProcess.kt
0 → 100644
+
25
-
0
View file @
0728062e
// 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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment