Constructor. Either sha or content must be defined.
sha
content
CreateGitTreeEntry(this.path, this.mode, this.type, {this.sha, this.content});