git - make patch by IDEA

Hello.

I am testing IDEA git integration and have a question. For example, one month ago I made the commit XXXXXXXXXXXXXXXXX. Now, I want to make a patch between that commit and HEAD. I type "git diff XXXXXXXXXXXXXXXXXX HEAD > new.patch" in command line but how I can to do it via IDEA?

9 comments
Comment actions Permalink

Hello Vasily,

I am testing IDEA git integration and have a question. For example,
one month ago I made the commit XXXXXXXXXXXXXXXXX. Now, I want to make
a patch between that commit and HEAD. I type "git diff
XXXXXXXXXXXXXXXXXX HEAD > new.patch" in command line but how I can to
do it via IDEA?


Open the Changes view, select the changelist, select "Create Patch" from
the context menu.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

My Changes view is empty, there are the changelists?
screen.png

0
Comment actions Permalink

Hello Vasily,

My Changes view is empty, there are the changelists?


Sorry, I didn't read your question attentively enough. :) For old commits,
the integration currently supports creating only single-file patches; you
can do this from the File History panel (Git > Show History).

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Does Maia have more "git-integration" features?

P.S. Anyway, IDEA is the best!

0
Comment actions Permalink

Hello Vasily,

Does Maia have more "git-integration" features?


More compared to what? :) Most of the standard IDEA VCS functionality is
supported for git, and there's also a number of git-specific actions like
stash/unstash which can also be invoked from the IDE.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Dmitry - what I'd love to see (and I've heard this from a few other people as well) in the git integration is the same information currently provided when using subversion.

1) Recent commits, groupable/filterable by date/commiter
2) Incoming/pullable changes - both from the local repository itself, but also from any active remotes

Also, I'm not sure if IDEA supports it - but git submodules - update/pull from the current repo, plus any submodules of it, and push repo/submodules

And to ease migration to git - support for git-svn.

Not sure how much of this could be done, or how easy such things would be to add in but they'd sure make for some compelling features.

0
Comment actions Permalink

Hello Mark,

Dmitry - what I'd love to see (and I've heard this from a few other
people as well) in the git integration is the same information
currently provided when using subversion.

1) Recent commits, groupable/filterable by date/commiter

2) Incoming/pullable changes - both from the local repository itself,
but also from any active remotes


We've started work on these features already, but I'm not sure if they'll
make it into the final 9.0 release.

Also, I'm not sure if IDEA supports it - but git submodules -
update/pull from the current repo, plus any submodules of it, and push
repo/submodules


Submodules are not currently supported, but they're definitely on the roadmap.

And to ease migration to git - support for git-svn.


We don't have any near-term plans to support this.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Compared to IDEA 8.1.3

So, you have written that
"...For old commits, the integration currently supports creating only single-file patches..."

I thought that currently == IDEA 8.1 and hope that Maia has more features.

0
Comment actions Permalink

Hello Vasily,

Compared to IDEA 8.1.3

So, you have written that
"...For old commits, the integration currently supports creating
only single-file patches..."
I thought that currently == IDEA 8.1 and hope that Maia has more
features.


No, this particular feature works the same in 8.1.3 and Maia.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.