Re: [PATCH 4/4] cherry-pick: Add `--empty` for more robust redundant commit handling
- From
Kristoffer Haugsbakk <code@khaugsbakk.name>
- Date
- Jan 21, 2024, 22:05 UTC
- Message-ID
- <ca810226-d626-4437-95da-f6a071aff961@app.fastmail.com>
- In-Reply-To
- <CAHPHrSddqTEjtfhgVJ=vmRhbtuwXcGEiE1KFZqR1QhKw-HDtSg@mail.gmail.com>
On Sun, Jan 21, 2024, at 19:28, Brian Lyles wrote:
> Is the sample pre-commit hook the ideal way to prevent this in the > future? Or is there some config I could set globally to enforce this > across repositories? I was having a little trouble finding a good way to > accomplish this globally.
I don’t know of any global config. So a pre-commit hook is probably the safest bet. Personally I set all my editors to remove trailing space and they very seldom mess it up. :)
-- Kristoffer Haugsbakk