summaryrefslogtreecommitdiff
path: root/lib/git/refs.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-11-15 22:12:05 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-11-15 22:12:05 +0100
commitceee7d7e0d98db12067744ac3cd0ab3a49602457 (patch)
tree61325f8bcb9b5849413abcdb8adba4c9cb410a44 /lib/git/refs.py
parent624556eae1c292a1dc283d9dca1557e28abe8ee3 (diff)
downloadgitpython-ceee7d7e0d98db12067744ac3cd0ab3a49602457.tar.gz
Added partial implementation of update, but realized that using refs in general may be contradicting if a tag is given there, as well as a commit sha of the submodule. Hence it should really be only a branch
Diffstat (limited to 'lib/git/refs.py')
-rw-r--r--lib/git/refs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/git/refs.py b/lib/git/refs.py
index af7284ff..3dc73d03 100644
--- a/lib/git/refs.py
+++ b/lib/git/refs.py
@@ -489,6 +489,8 @@ class SymbolicReference(object):
@classmethod
def from_path(cls, repo, path):
"""
+ :param path: full .git-directory-relative path name to the Reference to instantiate
+ :note: use to_full_path() if you only have a partial path of a known Reference Type
:return:
Instance of type Reference, Head, or Tag
depending on the given path"""