Use strbuf API in apply, blame, commit-tree and diff