Does PyCharm support "git add --patch"

I've made multiple changes in a file that I would like to split off into multiple commits.  I usually do this with git's "add --patch" command.  In that mode I'm able to select hunks within a file I want to commit.  When looking at PyCharm's diff viewer I noticed an "include into commit" checkbox, but that applies to the entire file, not just a hunk within the diff.  Is this even possible within PyCharm or should I just drop back down to the CLI for this function?

Thanks!

-Roberto.

2 comments
Comment actions Permalink

Hello Roberto,

At the moment the Git integration in PyCharm doesn't support adding individual

hunks of a file to a commit. It's possible that this will be supported in

a future version.

I've made multiple changes in a file that I would like to split off

into multiple commits.  I usually do this with git's "add --patch"

command.  In that mode I'm able to select hunks within a file I want

to commit.  When looking at PyCharm's diff viewer I noticed an

"include into commit" checkbox, but that applies to the entire file,

not just a hunk within the diff.  Is this even possible within PyCharm

or should I just drop back down to the CLI for this function?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink
I guess if you're interested in this you should vote here: http://youtrack.jetbrains.com/issue/IDEA-63201
1

Please sign in to leave a comment.