Re: [PATCH 3/3] fast-export: output reset command for commandline revs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 7, 2011, 05:53 UTC
- Message-ID
- <7vr51k32cj.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1320535407-4933-4-git-send-email-srabbelier@gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
Show 16 quoted lines
> +static void handle_tags_and_duplicates(struct rev_info *revs, struct string_list *extra_refs)
> {
> int i;
>
> + /* even if no commits were exported, we need to export the ref */
> + for (i = 0; i < revs->cmdline.nr; i++) {
> + struct rev_cmdline_entry *elem = &revs->cmdline.rev[i];
> +
> + if (elem->flags & UNINTERESTING)
> + continue;
> +
> + if (elem->whence != REV_CMD_REV && elem->whence != REV_CMD_RIGHT)
> + continue;
> +
> + char *full_name;
> + dwim_ref(elem->name, strlen(elem->name), elem->item->sha1, &full_name);Just a nit I've already fixed locally (iow no need to resend only to fix this) but this is decl-after-stmt.