| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,10 @@ | |||
| 2 | 2 | Changelog | |
| 3 | 3 | ========= | |
| 4 | 4 | ||
| 5 | + 0.3.2 Beta 2 | ||
| 6 | + ============ | ||
| 7 | + * Added reflog support ( reading and writing ) | ||
| 8 | + | ||
| 5 | 9 | 0.3.2 Beta 1 | |
| 6 | 10 | ============ | |
| 7 | 11 | * Flattened directory structure to make development more convenient. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ | |||
| 20 | 20 | # is relative to the documentation root, use os.path.abspath to make it | |
| 21 | 21 | # absolute, like shown here. | |
| 22 | 22 | #sys.path.append(os.path.abspath('.')) | |
| 23 | - sys.path.insert(0, os.path.abspath('../../lib')) | ||
| 23 | + sys.path.insert(0, os.path.abspath('../../../')) | ||
| 24 | 24 | ||
| 25 | 25 | # General configuration | |
| 26 | 26 | # --------------------- | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -131,13 +131,48 @@ Exceptions | |||
| 131 | 131 | :undoc-members: | |
| 132 | 132 | ||
| 133 | 133 | ||
| 134 | - Refs | ||
| 135 | - ---- | ||
| 134 | + Refs.symbolic | ||
| 135 | + ------------- | ||
| 136 | + | ||
| 137 | + .. automodule:: git.refs.symbolic | ||
| 138 | + :members: | ||
| 139 | + :undoc-members: | ||
| 140 | + | ||
| 141 | + Refs.reference | ||
| 142 | + -------------- | ||
| 136 | 143 | ||
| 137 | - .. automodule:: git.refs | ||
| 144 | + .. automodule:: git.refs.reference | ||
| 138 | 145 | :members: | |
| 139 | 146 | :undoc-members: | |
| 140 | 147 | ||
| 148 | + Refs.head | ||
| 149 | + --------- | ||
| 150 | + | ||
| 151 | + .. automodule:: git.refs.head | ||
| 152 | + :members: | ||
| 153 | + :undoc-members: | ||
| 154 | + | ||
| 155 | + Refs.tag | ||
| 156 | + ------------ | ||
| 157 | + | ||
| 158 | + .. automodule:: git.refs.tag | ||
| 159 | + :members: | ||
| 160 | + :undoc-members: | ||
| 161 | + | ||
| 162 | + Refs.remote | ||
| 163 | + ------------ | ||
| 164 | + | ||
| 165 | + .. automodule:: git.refs.remote | ||
| 166 | + :members: | ||
| 167 | + :undoc-members: | ||
| 168 | + | ||
| 169 | + Refs.log | ||
| 170 | + ------------ | ||
| 171 | + | ||
| 172 | + .. automodule:: git.refs.log | ||
| 173 | + :members: | ||
| 174 | + :undoc-members: | ||
| 175 | + | ||
| 141 | 176 | Remote | |
| 142 | 177 | ------ | |
| 143 | 178 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,6 +88,14 @@ A symbolic reference is a special case of a reference as it points to another re | |||
| 88 | 88 | head = repo.head # the head points to the active branch/ref | |
| 89 | 89 | master = head.reference # retrieve the reference the head points to | |
| 90 | 90 | master.commit # from here you use it as any other reference | |
| 91 | + | ||
| 92 | + Access the reflog easily:: | ||
| 93 | + | ||
| 94 | + log = master.log() | ||
| 95 | + log[0] # first (i.e. oldest) reflog entry | ||
| 96 | + log[-1] # last (i.e. most recent) reflog entry | ||
| 97 | + | ||
| 98 | + For more information on the reflog, see the ``RefLog`` type's documentation. | ||
| 91 | 99 | ||
| 92 | 100 | Modifying References | |
| 93 | 101 | ******************** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,8 +3,6 @@ | |||
| 3 | 3 | # | |
| 4 | 4 | # This module is part of GitPython and is released under | |
| 5 | 5 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php | |
| 6 | - """Module containing Index implementation, allowing to perform all kinds of index | ||
| 7 | - manipulations such as querying and merging.""" | ||
| 8 | 6 | import tempfile | |
| 9 | 7 | import os | |
| 10 | 8 | import sys | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,6 @@ | |||
| 1 | - """ | ||
| 2 | - Contains standalone functions to accompany the index implementation and make it | ||
| 3 | - more versatile | ||
| 4 | - """ | ||
| 1 | + # Contains standalone functions to accompany the index implementation and make it | ||
| 2 | + # more versatile | ||
| 3 | + # NOTE: Autodoc hates it if this is a docstring | ||
| 5 | 4 | from stat import ( | |
| 6 | 5 | S_IFDIR, | |
| 7 | 6 | S_IFLNK, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - """ Module containing all ref based objects """ | ||
| 2 | 1 | from symbolic import SymbolicReference | |
| 3 | 2 | from reference import Reference | |
| 4 | 3 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,8 @@ | |||
| 3 | 3 | # | |
| 4 | 4 | # This module is part of GitPython and is released under | |
| 5 | 5 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php | |
| 6 | - """Module implementing a remote object allowing easy access to git remotes""" | ||
| 6 | + | ||
| 7 | + # Module implementing a remote object allowing easy access to git remotes | ||
| 7 | 8 | ||
| 8 | 9 | from exc import GitCommandError | |
| 9 | 10 | from objects import Commit | |
| Back | FazBrowse Home | New Git URL |
0 commit comments