Skip to content

Commit 451d8d5

Browse files
committed
Display diff of staged changes
1 parent ba4f8e6 commit 451d8d5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/update_changelog.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,17 @@ def main():
165165
for pull in pulls_missing_semver_label)))
166166
raise Exception(error_message)
167167

168-
print('before:')
169-
print(local_repo.git.status())
168+
# print('before:')
169+
# print(local_repo.git.status())
170170

171171
local_repo.git.add(CHANGELOG_PATH)
172172
local_repo.git.add(LIBRARY_FILE_PATH)
173173

174-
print('after:')
175-
print(local_repo.git.status())
174+
# print('after:')
175+
# print(local_repo.git.status())
176+
177+
print('diff:')
178+
print(local_repo.git.diff('--cached'))
176179

177180
if __name__ == '__main__':
178181
main()

0 commit comments

Comments
 (0)