Skip to content

Commit

Permalink
Reverse order of topics in amend
Browse files Browse the repository at this point in the history
This makes it consistent with the order you'd see
in "git log".

Topic: amend_reverse
Reviewers: brian-k, malcolm
  • Loading branch information
jerry-skydio committed Sep 22, 2022
1 parent 887b6b9 commit b079b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion revup/amend.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def get_topic_summary(topics: topic_stack.TopicStack) -> str:
if len(topics.topics) == 0:
return ""

topic_lines = "".join([f" {topic}\n" for topic in topics.topics.keys()])
topic_lines = "".join([f" {topic}\n" for topic in reversed(topics.topics.keys())])
return f"\nTopics found between HEAD and {topics.relative_branch}:\n{topic_lines}"


Expand Down

0 comments on commit b079b89

Please sign in to comment.