Use "git rev-list" instead of "git log ..."

to get a list of commits between two points, we simply use
"git rev-list", this is just simple. "git log" is ok, too