Skip to content

Commit ab25a92

Browse files
committed
Display diff with color
1 parent 451d8d5 commit ab25a92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/update_changelog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def main():
153153
'<!-- CHANGELOG_PLACEHOLDER -->',
154154
'<!-- CHANGELOG_PLACEHOLDER -->\n\n{}'.format(release_content),
155155
)
156-
print(new_content[:800])
156+
# print(new_content[:800])
157157
CHANGELOG_PATH.write_text(new_content)
158158

159159
# Raise error if any pull request is missing a semantic version change type.
@@ -175,7 +175,7 @@ def main():
175175
# print(local_repo.git.status())
176176

177177
print('diff:')
178-
print(local_repo.git.diff('--cached'))
178+
print(local_repo.git.diff(cached=True, color='always'))
179179

180180
if __name__ == '__main__':
181181
main()

0 commit comments

Comments
 (0)