Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amend: respect core.commentChar #152

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

jerry-skydio
Copy link
Collaborator

Similarly we can respect the configured comment character
pretty easily by using it instead of # when applicable.

@jerry-skydio
Copy link
Collaborator Author

jerry-skydio commented Mar 12, 2024

Reviews in this chain:
#152 amend: respect core.commentChar

@jerry-skydio
Copy link
Collaborator Author

jerry-skydio commented Mar 12, 2024

# head base diff date summary
0 333a4c46 a3fc421e diff Mar 11 19:23 PM 1 file changed, 10 insertions(+), 5 deletions(-)
1 4429d175 1c175034 rebase Mar 11 19:39 PM 0 files changed
2 d497a62a ef0f540b rebase Mar 11 19:41 PM 0 files changed
3 e5b2e243 417a57fc rebase Mar 11 19:52 PM 0 files changed
4 9282fd70 56a4716c rebase Mar 12 11:03 AM 0 files changed
5 4875af05 24012d1b diff Mar 12 11:08 AM 0 files changed

Copy link
Contributor

@aaron-skydio aaron-skydio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, didn't even know this was a config option

Comment on lines -51 to +56
comments = f"\n{CLEANUP_STRIP_COMMENT}\n{comments}"
comments = f"\n{CLEANUP_STRIP_COMMENT.format(comment_char)}\n{comments}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format in an interpolated string is kinda wild, but I can't think of a nicer way lol

@jerry-skydio jerry-skydio force-pushed the jerry/revup/main/cleanup branch from 417a57f to 56a4716 Compare March 12, 2024 18:04
@jerry-skydio jerry-skydio force-pushed the jerry/revup/main/comment branch from e5b2e24 to 9282fd7 Compare March 12, 2024 18:04
Similarly we can respect the configured comment character
pretty easily by using it instead of # when applicable.
Base automatically changed from jerry/revup/main/cleanup to main March 12, 2024 18:08
@jerry-skydio jerry-skydio force-pushed the jerry/revup/main/comment branch from 9282fd7 to 4875af0 Compare March 12, 2024 18:08
@jerry-skydio jerry-skydio merged commit 9ea9f6a into main Mar 12, 2024
5 checks passed
@jerry-skydio jerry-skydio deleted the jerry/revup/main/comment branch March 12, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants