| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,6 +17,16 @@ General | |||
| 17 | 17 | where unique | |
| 18 | 18 | * removed basename method from Objects with path's as it replicated features of os.path | |
| 19 | 19 | ||
| 20 | + objects Package | ||
| 21 | + ---------------- | ||
| 22 | + * blob, tree, tag and commit module have been moved to new objects package. This should | ||
| 23 | + not affect you though unless you explicitly imported individual objects. If you just | ||
| 24 | + used the git package, names did not change. | ||
| 25 | + | ||
| 26 | + Repo | ||
| 27 | + ---- | ||
| 28 | + * Moved blame method from Blob to repo as it appeared to belong there much more. | ||
| 29 | + | ||
| 20 | 30 | Diff | |
| 21 | 31 | ---- | |
| 22 | 32 | * Members a a_commit and b_commit renamed to a_blob and b_blob - they are populated | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,19 +9,17 @@ | |||
| 9 | 9 | ||
| 10 | 10 | __version__ = 'git' | |
| 11 | 11 | ||
| 12 | + from git.objects import * | ||
| 13 | + from git.refs import * | ||
| 12 | 14 | from git.actor import Actor | |
| 13 | - from git.blob import Blob | ||
| 14 | - from git.commit import Commit | ||
| 15 | 15 | from git.diff import Diff | |
| 16 | 16 | from git.errors import InvalidGitRepositoryError, NoSuchPathError, GitCommandError | |
| 17 | 17 | from git.cmd import Git | |
| 18 | - from git.head import Head | ||
| 19 | 18 | from git.repo import Repo | |
| 20 | 19 | from git.stats import Stats | |
| 21 | - from git.tag import Tag,TagRef,TagObject | ||
| 22 | - from git.tree import Tree | ||
| 23 | 20 | from git.utils import dashify | |
| 24 | 21 | from git.utils import touch | |
| 25 | 22 | ||
| 23 | + | ||
| 26 | 24 | __all__ = [ name for name, obj in locals().items() | |
| 27 | 25 | if not (name.startswith('_') or inspect.ismodule(obj)) ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ | |||
| 5 | 5 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php | |
| 6 | 6 | ||
| 7 | 7 | import re | |
| 8 | - import blob | ||
| 8 | + import objects.blob as blob | ||
| 9 | 9 | ||
| 10 | 10 | class Diff(object): | |
| 11 | 11 | """ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + """ | ||
| 2 | + Import all submodules main classes into the package space | ||
| 3 | + """ | ||
| 4 | + import inspect | ||
| 5 | + from tag import * | ||
| 6 | + from blob import * | ||
| 7 | + from tree import * | ||
| 8 | + from commit import * | ||
| 9 | + | ||
| 10 | + __all__ = [ name for name, obj in locals().items() | ||
| 11 | + if not (name.startswith('_') or inspect.ismodule(obj)) ] | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments