summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d4c43e1)
The git_id() function now calls git.rev_parse() if it cannot get the id.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
# maybe GIT knows more about this id
if not strict:
# maybe GIT knows more about this id
if not strict:
+ return git.rev_parse(git_id)
elif len(string_list) == 2:
patch_name = string_list[0]
if patch_name == '':
elif len(string_list) == 2:
patch_name = string_list[0]
if patch_name == '':
"""
write_string(head_link, val)
"""
write_string(head_link, val)
+def rev_parse(git_id):
+ """Parse the string and return an SHA1 id
+ """
+ _output(['git-rev-parse', git_id])
+
def add(names):
"""Add the files or recursively add the directory contents
"""
def add(names):
"""Add the files or recursively add the directory contents
"""