Re: [PATCH v2 00/13] push: revamp push.default

Subsystems: the rest

2 messages, 2 authors, 2021-06-02 · open the first message on its own page

Re: [PATCH v2 00/13] push: revamp push.default

From: Junio C Hamano <hidden>
Date: 2021-06-02 01:16:18

Felipe Contreras [off-list ref] writes:
The end result is almost identical to v1, only the way we get there
changes (plus there's an extra cosmetic break).
Good.  The endpoint matches exactly to what was queued, with the
SQUASH??? fix for the "break" thing, which is necessary to make
"make sparse" happy (so it is not just "cosmetic").

IOW, this series allows us to drop the following.

commit c1964311c404afaadffd57d14d769a4051281c2b
Author: Junio C Hamano [off-list ref]
Date:   Mon May 31 12:41:06 2021 +0900

    SQUASH??? fix compilation breakage
    
    make sparse found these:
    
    builtin/push.c:221:9: error: Expected ; at end of statement
    builtin/push.c:221:9: error: got }
diff --git a/builtin/push.c b/builtin/push.c
index f1ac531252..e8b10a9b7e 100644
--- a/builtin/push.c
+++ b/builtin/push.c
@@ -218,6 +218,7 @@ static void setup_default_push_refspecs(struct remote *remote)
 		    "push.default is \"nothing\"."));
 		return;
 	default:
+		break;
 	}
 
 	branch = branch_get(NULL);

Re: [PATCH v2 00/13] push: revamp push.default

From: Felipe Contreras <hidden>
Date: 2021-06-02 04:05:07

Junio C Hamano wrote:
Felipe Contreras [off-list ref] writes:
quoted
The end result is almost identical to v1, only the way we get there
changes (plus there's an extra cosmetic break).
Good.  The endpoint matches exactly to what was queued, with the
SQUASH??? fix for the "break" thing, which is necessary to make
"make sparse" happy (so it is not just "cosmetic").

IOW, this series allows us to drop the following.
Indeed.
commit c1964311c404afaadffd57d14d769a4051281c2b
Author: Junio C Hamano [off-list ref]
Date:   Mon May 31 12:41:06 2021 +0900

    SQUASH??? fix compilation breakage
    
    make sparse found these:
    
    builtin/push.c:221:9: error: Expected ; at end of statement
    builtin/push.c:221:9: error: got }
Is it really a "compilation breakage"?

Documentation/SubmittingPatches doesn't mention sparse. I do remember
setting up sparse when I worked with Linux in the past, but it's not
precisely a standard thing. At least in Arch Linux it's not even part of
the main packages [1].

Cheers.

[1] https://aur.archlinux.org/packages/sparse/

-- 
Felipe Contreras
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help