]> Kevux Git Server - rit/commit
you-still-use-that??: help deprecating commands for removal
authorJunio C Hamano <gitster@pobox.com>
Mon, 12 May 2025 19:03:06 +0000 (12:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 May 2025 20:11:43 +0000 (13:11 -0700)
commit4511d56e1a4c09abbe0c6b513fd858072b55cbd8
tree271500df982c28552fda1efd74aa7b115156f902
parentd50a5e8939abfc07c2ff97ae72e9330939b36ee0
you-still-use-that??: help deprecating commands for removal

Commands slated for removal like "git pack-redundant" now require
an explicit "--i-still-use-this" option to run.  This is to
discourage casual use and surface their pending deprecation to
users.

The warning message is long, so factor it into a helper function
you_still_use_that() to simplify reuse by other commands.

Also add a missing test to ensure this enforcement works for
"pack-redundant".

Helped-by: Elijah Newren <newren@gmail.com>
[en: log message]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-redundant.c
git-compat-util.h
t/t5323-pack-redundant.sh
usage.c