Re: [PATCH 13/24] builtin/pack-objects: convert to struct object_id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> @@ -2520,17 +2521,17 @@ static void read_object_list_from_stdin(void)
>                         continue;
>                 }
>                 if (line[0] == '-') {
> -                       if (get_sha1_hex(line+1, sha1))
> +                       if (get_oid_hex(line+1, &oid))
>                                 die("expected edge sha1, got garbage:\n %s",
>                                     line);
...

> -               if (get_sha1_hex(line, sha1))
> +               if (parse_oid_hex(line, &oid, &p))
>                         die("expected sha1, got garbage:\n %s", line);

Ideally we do not forget about converting the die() calls, too.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux