summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-01-29 11:06:15 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-09 08:33:17 -0800
commit2096948158ea0b253a68a81c691fdf88ff00589a (patch)
tree6d097c0e91d5d6c5f2efb8505f06eced7521df6c /contrib/persistent-https
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff)
downloadgit-2096948158ea0b253a68a81c691fdf88ff00589a.tar.gz
git-2096948158ea0b253a68a81c691fdf88ff00589a.zip
checkout: pass program-readable token to unified "main"
The "git checkout", "git switch", and "git restore" commands share a single implementation, checkout_main(), which switches error message it gives using the usage string passed by each of these three front-ends. In order to be able to tweak behaviours of the commands based on which one we are executing, invent an enum that denotes which one of these three commands is currently executing, and pass that to checkout_main() instead. With this step, there is no externally visible behaviour change, as this enum parameter is only used to choose among the three usage strings. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions