Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Commit Hunk Checkbox not there

I just tried 2018.2 EAP and I don’t see the checkboxes in my gutter for partial hunk commits.. And it’s not in the commit dialog box either.

There are no IDE exceptions, and the other new features mentioned here: https://blog.jetbrains.com/idea/2018/06/whats-new-in-intellij-idea-2018-2-eap-4/ seem to be present, e.g being able to delete a tag in log view.

Could someone point me in the right direction? Thanks

like image 240
Frank C Avatar asked Jun 19 '18 23:06

Frank C


3 Answers

You can activate it under "Settings => General =>" Highlight modified lines in gutter " But why that was placed so I can not say!

like image 194
Christian M. Avatar answered Nov 03 '22 06:11

Christian M.


Beside issue IDEA-186988 (still pending, for adding specific lines), the new add -p feature seems to be working only in a specific mode:

Only works in “Side-by-side viewer” Diff mode.
Having to switch from convenient “Unified viewer” mode to inconvenient “Side-by-side” just for commit individual lines/hunks is… how to say… against the very idea of IntelliJ IDEA of being convenient, isn’t it?

The same page "IntelliJ IDEA 2018.1 EAP: Partial Git commits and more" includes the comment from Jurgis Pralgauskis (March 2019, similar to Christian M's answer):

On PyCharm 2018.3.5 (pro) this is not shown in commit dialog unless I enable :

Settings->Editor->General: Highlight modified files in gutter
like image 36
VonC Avatar answered Nov 03 '22 05:11

VonC


I was also missing the checkboxes in git diff today in 2022 and found, they are introduced by installing a plugin called "GitToolBox" in the Marketplace (Preferences->Plugins->click on "Marketplace"->Search for "GitToolBox". After installing and restarting the IDE, checkboxes in git diff view when in commit-window are present.

like image 42
lord_of_the_leek Avatar answered Nov 03 '22 06:11

lord_of_the_leek