top | item 36784485

(no title)

FrontAid | 2 years ago

I don't know Rider, but I assume this is a limitation in all of their IDEs. Yes, you can commit only certain changes within a file. But you can only do that based on whole chunks. For example, if you add two new lines at the end of an existing file, you cannot commit only one line but not the other. The same limitation applies to changelists (at least in IntelliJ IDEA and Webstorm).

discuss

order

colejohnson66|2 years ago

Doesn't this come from git itself? If you try `git add -p <file>`, it'll chunk just as "bad".

nerdponx|2 years ago

You can edit the hunk manually. I believe it's also possible to construct a hunk to apply entirely from scratch as long as you get the header right.

tomkarho|2 years ago

Indeed. That is a limitation with Rider too.