Re: The git spring cleanup challenge
From: Felipe Contreras <hidden>
Date: 2021-06-02 04:01:25
Bagas Sanjaya wrote:
On 01/06/21 13.24, Felipe Contreras wrote:quoted
Once you've lost, reply to this message with the configuration you could not live without.I'm not opting in into the challenge, but here are my mandatory global configurations:quoted
[core] editor = rvimI set core.editor to rvim because of my habit to edit using restricted vim (as I only use vim to edit files, nothing else).
Why not VISUAL=rvim? (or EDITOR)
quoted
[merge] conflictstyle = diff3With diff3 conflict style, I can clearly see the context of conflict (base) instead of having to choose between either side without context. For several repos, I do GPG-sign commits, so the required config is:
Yeap, just like apparently everyone else.
On very large repos I have (for example GCC and Linux kernel), I have:quoted
[pack] packSizeLimit = 650m windowMemory = 400mBoth pack.packSizeLimit and pack.windowMemory helps when doing git-repack there. With the former, the resulting pack file is limited to 650M size each, and the latter set memory window during delta compression.
All right. But I presume you don't need to do `git repack` that often. You can wait a month, or type --max-pack-size --window-memory if you really must run it. Either way it's probably not some defaults that newcomers would benefit from. Cheers. -- Felipe Contreras