Detect boundaries, support limiting commit range