perf: 优化update指令显示

This commit is contained in:
Soulter
2023-04-10 22:37:08 +08:00
parent b6cc866113
commit c4071eedf8

View File

@@ -63,6 +63,9 @@ class Command:
commits_log = ''
index = 1
for commit in commits:
if commit.message.endswith("\n"):
commits_log += f"[{index}] {commit.message}-----------\n"
else:
commits_log += f"[{index}] {commit.message}\n-----------\n"
index+=1
remote_commit_hash = origin.refs.master.commit.hexsha[:6]