diff options
author | Glen Choo <chooglen@google.com> | 2022-03-31 15:41:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-31 15:52:53 -0700 |
commit | 6696601241d27cf7b2834b92788a73a6f4af2e89 (patch) | |
tree | ef2796cf3403177fcff75b69732228562255789a /t/t4135/damaged.diff | |
parent | branch: rework comments for future developers (diff) | |
download | tgif-6696601241d27cf7b2834b92788a73a6f4af2e89.tar.xz |
branch.c: simplify advice-and-die sequence
In the dwim_branch_start(), when we cannot find an appropriate
upstream, we will die with the same message anyway, whether we
issue an advice message.
Flip the code around a bit and simplify the flow using
advise_if_enabled() function.
Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4135/damaged.diff')
0 files changed, 0 insertions, 0 deletions