Thread (6 messages) flat view 6 messages, 5 authors, 2025-08-07

Re: [PATCH v2] remote.c: convert if-else tower to switch

From: Eric Sunshine <hidden>
Date: 2025-08-07 17:19:46

On Thu, Aug 7, 2025 at 8:35 AM Ben Knoble [off-list ref] wrote:
quoted
Le 7 août 2025 à 05:20, Denton Liu [off-list ref] a écrit :
For better readability, convert the if-else tower into a switch
statement.

Signed-off-by: Denton Liu <redacted>
---
diff --git a/remote.c b/remote.c
index 465e0ea0eb..029b1fa93b 100644
--- a/remote.c
+++ b/remote.c
@@ -1171,7 +1171,6 @@ static void show_push_unqualified_ref_name_error(const char *dst_value,
Range-diff against v1:
Don’t we normally put single-patch notes like a range-diff right after the triple dash? I have a feeling this format breaks git-am on the receiving side, though I haven’t actually tried it.
Not since 2fa04cebfb (format-patch: move range/inter diff at the end
of a single patch output, 2024-05-24).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help