support git's shallow clone

Hi there,
I think you already know about shallow and cloning depth, I want to add this feature in gift, can help us save bandwith, diskspace, resource usage and time when the git repository is large, and we don't want to clone the whole repository.
Thanks!