aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/hook.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-06-04 15:01:45 -0700
committerJunio C Hamano <gitster@pobox.com>2024-06-04 15:07:08 -0700
commit607c3d372ef89cf16874c288c60423587286d182 (patch)
tree37ad93d8f07b1b3b45ef00f6da5e1b385495c5f1 /builtin/hook.c
parentb773fb882231cd8fac4ce37ffb5a8b1d985f37ea (diff)
downloadgit-607c3d372ef89cf16874c288c60423587286d182.tar.gz
show-ref: introduce --branches and deprecate --heads
We call the tips of branches "heads", but this command calls the option to show only branches "--heads", which confuses the branches themselves and the tips of branches. Straighten the terminology by introducing "--branches" option that limits the output to branches, and deprecate "--heads" option used that way. We do not plan to remove "--heads" or "-h" yet; we may want to do so at Git 3.0, in which case, we may need to start advertising upcoming removal with an extra warning when they are used. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/hook.c')
0 files changed, 0 insertions, 0 deletions
tlgXE9-lkp@intel.com/">https://lore.kernel.org/oe-kbuild-all/202409251238.vetlgXE9-lkp@intel.com/ Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Eder Zulian <ezulian@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Tested-by: Boqun Feng <boqun.feng@gmail.com> Link: https://lore.kernel.org/r/20241107163223.2092690-2-ezulian@redhat.com