[PATCH V2 0/2] show-index: add warning and wrap error messages with gettext
- From
Shreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>
- Date
- Jan 30, 2026, 15:31 UTC
- Message-ID
- <20260130153603.290196-1-shreyanshpaliwalcmsmn@gmail.com>
- In-Reply-To
- <20260129153948.224156-1-shreyanshpaliwalcmsmn@gmail.com>
'git show-index' relies on implicit assumption in the absence of repository context to fall back to SHA-1 as the hashing algorithm.
patch 1/2: add a warning when this fallback happens.
patch 2/2: cleanup by adding gettext wrapping to all user-facing error messages in show-index.c.
Shreyansh Paliwal (2): show-index: warn when falling back to SHA-1 outside a repository show-index: use gettext wrapping in user facing error messages
builtin/show-index.c | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-)
---
Changes in V2:
- Split the original patch into two separate patches for better
clarity and distinction.
- Improved line wrapping to around ~70 columns.-- 2.52.0