convert.c clean-up
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | convert: rename the "eol" global variable to "core_eol"cache.h config.c convert.c +1 more | +10 | 0 replies | |
| 2/4 | convert: give saner names to crlf/eol variables, types and functionsconvert.c | +31 | 0 replies | |
| 3/4 | convert: make it safer to add conversion attributesconvert.c | +22 | 0 replies | |
| 4/4 | convert: make it harder to screw up adding a conversion attributeconvert.c | +38 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] convert.c clean-up
Quoted 3 lines · Nguyen Thai Ngoc Duy
Instead we could detect if convert-from/to-git is unnecessary and stream big blobs based on core.bigFileThresold. The below patch may help.
Yeah, I think that would probably make more sense. If a file is small enough, it is more sensible to send it to a loose object just like any other files. We do not want to invite users to make a mistake of marking it as bigdata and send it straight to a packfile. Having one less knob to tweak is always a good thing to do.
However, while reviewing your patch, I noticed that convert.c was littered with misnamed types, variables and functions to the point to make it almost unreadble as the result of its evolution. I originally wrote this series so that I can add "bigdata" sensibly, and it turns out that there is no benefit to do so for now, but the clean-up by itself would be worth it.
So there...
Junio C Hamano (4):
convert: rename the "eol" global variable to "core_eol"
convert: give saner names to crlf/eol variables, types and functions
convert: make it safer to add conversion attributes
convert: make it harder to screw up adding a conversion attribute
cache.h | 2 +- config.c | 12 ++-- convert.c | 158 +++++++++++++++++++++++++++----------------------------- environment.c | 2 +- 4 files changed, 84 insertions(+), 90 deletions(-)
Signature · 1 line
1.7.5.1.288.g93ebc