Files
PyGithub/github/GithubObjects/GitTree.py
T
2012-03-19 19:35:11 +01:00

12 lines
295 B
Python

from GithubObject import *
GitTree = GithubObject(
"GitTree",
BaseUrl( lambda obj: obj._repo._baseUrl() + "/git/trees/" + obj.sha + ( "?recursive=1" if obj.recursive else "" ) ),
InternalSimpleAttributes(
"sha", "url",
"tree",
"_repo", "recursive",
),
)