You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, yes, this is supposed to be only a band-aid option for `git add -p`
not Doing The Right Thing. But as long as we carry the `--allow-overlap`
option, we might just as well get it right.
This fixes the case where one hunk inserts a line before the first line,
and is followed by a hunk whose context overlaps with the first one's
and which appends a line at the end.
Note that this affects only the beginning of the file: when a hunk is
plit into two, the first can change the context so that the second hunk
thinks it should match the beginning of the file, but it no longer does
because the first hunk was already applied. The same is not true for the
end of the file, as the hunks are applied in order (by line numbers):
the hunk that changes the end of the file is by definition the last hunk
to be applied.
Signed-off-by: Johannes Schindelin <[email protected]>
0 commit comments