perf: 优化update指令显示
This commit is contained in:
1 parent
b6cc866113
commit
c4071eedf8
1 file changed
+4
-1
@@ -63,7 +63,10 @@ class Command:
|
||||
commits_log = ''
|
||||
index = 1
|
||||
for commit in commits:
|
||||
commits_log += f"[{index}] {commit.message}\n-----------\n"
|
||||
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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user