diff options
author | Elijah Newren <newren@gmail.com> | 2023-12-03 05:57:01 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-12-03 15:25:14 +0900 |
commit | 6b7f56f7ef7aa394d07ff99deff7740f4f3e04a3 (patch) | |
tree | 8cbf34c85a9aa6b020015628a71c8e23b857fdf6 /builtin/commit-graph.c | |
parent | 564d0252ca632e0264ed670534a51d18a689ef5d (diff) |
completion: squelch stray errors in sparse-checkout completion
If, in the root of a project, one types
git sparse-checkout set --cone ../<TAB>
then an error message of the form
fatal: ../: '../' is outside repository at '/home/newren/floss/git'
is written to stderr, which munges the users view of their own command.
Squelch such messages by using the __git() wrapper, designed for this
purpose; see commit e15098a314 (completion: consolidate silencing errors
from git commands, 2017-02-03) for more on the wrapper.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions