docs: Clarify `CreateTree` semantics and `TreeEntry` usage by rogpeppe · Pull Request #3877 · google/go-github
changed the title
docs: clarify CreateTree semantics and TreeEntry usage
docs: Clarify CreateTree semantics and TreeEntry usage
Document the merge behavior when baseTree is provided, how to delete files and directories by setting SHA and Content to nil, and that duplicate paths result in last-entry-wins behavior. Also document on TreeEntry how to use Content vs SHA, referencing CreateBlob for binary files, and that Type/Mode are ignored when deleting. Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters