You will get the the full 10% melee defense bonus from him (incidentally, I know it seems like I'm pulling these numbers out of my ass, but I haven't had time to write any kind of FAQ for the game).
If your commander is lower than you, though, you should desert him and keep attacking until he joins you!