It's a single line that is used in a single place, and the variable has
the same name as the function.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
return branch->merge[0]->src;
}
-static int is_same_remote(struct remote *remote)
-{
- return remote == remote_get(NULL);
-}
-
static void setup_default_push_refspecs(struct remote *remote)
{
struct branch *branch;
- int same_remote = is_same_remote(remote);
+ int same_remote = remote == remote_get(NULL);
const char *dst;
switch (push_default) {