linux using/applying patches and confusion related to hunks

I got a huge patch of about 200 patches from another team. I have divided them into individual patches and applying them.

For some of the patches I see an output as “patching file aa/bb/cc.c”
For some others I see output as “Hunk #1 succeeded at 90 (offset -39 lines).”

I assume in both the cases patches have been successfully applied.
If my assumption is correct then why do I see different outputs.
My guess is in second case, patch could not be applied at exactly the same place (Same offset). However, PATCH figured out where to apply and applied it at some other offset.
Whereas in first case it was applied exactly where it was intended.

Can someone confirm if my understanding is correct.

Thanks

  • How to break a series of git commits into patches for submission to another project
  • What is the difference between 'git format-patch and 'git diff'?
  • How to apply patch hunk by hunk?
  • How can I save an incompletely merged index in git?
  • How do I apply a patch visually from a foreign repo into mine?
  • Why does git pull --rebase fail when replaying existing commits?
  • Display Git diff on client side in javascript as html
  • Git: How to diff two different files in different branches?
  • One Solution collect form web for “linux using/applying patches and confusion related to hunks”

    Yes, your understanding is correct. If it didn’t succeed, you would get an error message from git. If you use patch, this would create a #.rej file (see man page)

    In your case, the patch succeeded, but at a slightly different line then indicated in the patch.

    Git Baby is a git and github fan, let's start git clone.