Commit 0b5b409a authored by Simon Glass's avatar Simon Glass
Browse files

patman: Use the full commit hash for 'git checkout'



Even with the initial 8 characeters of the hash we will sometimes get a
collision. Use the full hash.
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent ce267335
...@@ -70,7 +70,7 @@ def ShowActions(series, why_selected, boards_selected, builder, options): ...@@ -70,7 +70,7 @@ def ShowActions(series, why_selected, boards_selected, builder, options):
if commits: if commits:
for upto in range(0, len(series.commits), options.step): for upto in range(0, len(series.commits), options.step):
commit = series.commits[upto] commit = series.commits[upto]
print ' ', col.Color(col.YELLOW, commit.hash, bright=False), print ' ', col.Color(col.YELLOW, commit.hash[:8], bright=False),
print commit.subject print commit.subject
print print
for arg in why_selected: for arg in why_selected:
......
...@@ -248,8 +248,7 @@ class PatchStream: ...@@ -248,8 +248,7 @@ class PatchStream:
# Detect the start of a new commit # Detect the start of a new commit
elif commit_match: elif commit_match:
self.CloseCommit() self.CloseCommit()
# TODO: We should store the whole hash, and just display a subset self.commit = commit.Commit(commit_match.group(1))
self.commit = commit.Commit(commit_match.group(1)[:8])
# Detect tags in the commit message # Detect tags in the commit message
elif tag_match: elif tag_match:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment