Open lambdalisue opened 3 years ago
It seems patch fails when there is no common suffix among stage, index, and worktree.
For example
| HEAD | INDEX | WORKTREE | |+aaaaaaaa |+aaaaaaaa | | |+aaaaaaaa |+aaaaaaaa | | | |+aaaaaaaa |+aaaaaaaa | | |+aaaaaaaa |+aaaaaaaa | |+aaaaaaaa | | | |+aaaaaaaa | | | | XXXXXXXX | XXXXXXXX | XXXXXXXX |
works OK while the last XXXXXXXXXX are common among three but
XXXXXXXXXX
| HEAD | INDEX | WORKTREE | |+aaaaaaaa |+aaaaaaaa | | |+aaaaaaaa |+aaaaaaaa | | | |+aaaaaaaa |+aaaaaaaa | | |+aaaaaaaa |+aaaaaaaa | |+aaaaaaaa | | | |+aaaaaaaa | | |
does not works while the last line is different among theee.
Somehow I could not reproduce this issue. I knew there is this issue but could not reproduce it...
Let me know if someone find a way to reproduce the issue.
May https://stackoverflow.com/questions/4770177/git-patch-does-not-apply
It seems patch fails when there is no common suffix among stage, index, and worktree.
For example
works OK while the last
XXXXXXXXXX
are common among three butdoes not works while the last line is different among theee.