sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
610 stars 66 forks source link

discard single line doesn't work as expected #235

Closed ghiboz closed 2 days ago

ghiboz commented 2 days ago

hello again: I have this situation:

image and under these lines are many changes: I want discard the first change and commit all the other changes: with other git client I'm used to discard the line I don't need and commit the entire file: but if I discard this line, this happens:

image

and my file have the line cancelled, not restored with the old situation:

#include <queue>
#include <regex>
love-linger commented 2 days ago

Yes, in side-by-side view, you need discard changes in both side. In your description above, you only discard the new line added and leave the remove action.

ghiboz commented 2 days ago

ah ok! and I suppose also for stage in selected works like this: I have to do in both side