This is an archive of the discontinued LLVM Phabricator instance.

git-clang-format: cleanup: Use run() when possible.
AcceptedPublic

Authored by lodato on Dec 12 2017, 1:16 PM.

Details

Reviewers
djasper
klimek
Summary

This makes the code a bit easier to understand. Also add a docstring to run().

Note: This means that we read the entire index into memory when calling git update-index, whereas previously we would send the data line-by-line. Git already loads the entire index into memory anyway (to my knowledge) so this should not cause a regression.

Diff Detail

Event Timeline

lodato created this revision.Dec 12 2017, 1:16 PM
lodato edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Dec 13 2017, 1:05 AM
shafik added a subscriber: shafik.Sep 21 2023, 9:25 AM

Is this still relevant or can we close it?

Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2023, 9:25 AM