Re: [PATCH 1/1] diffcore: add a pickaxe option to find a specific blob

2017-12-28 Thread Stefan Beller
On Thu, Dec 28, 2017 at 1:33 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> +static int parse_objfind_opt(struct diff_options *opt, const char *arg) >> +{ >> + struct object_id oid; >> + >> + if (get_oid(arg, &oid)) >> + return error("unable to resolve '%s'", arg); >>

Re: [PATCH 1/1] diffcore: add a pickaxe option to find a specific blob

2017-12-28 Thread Junio C Hamano
Stefan Beller writes: > +static int parse_objfind_opt(struct diff_options *opt, const char *arg) > +{ > + struct object_id oid; > + > + if (get_oid(arg, &oid)) > + return error("unable to resolve '%s'", arg); > + > + if (!opt->objfind) > + opt->objfind = xcallo

[PATCH 1/1] diffcore: add a pickaxe option to find a specific blob

2017-12-27 Thread Stefan Beller
Sometimes users are given a hash of an object and they want to identify it further (ex.: Use verify-pack to find the largest blobs, but what are these? or [1]) One might be tempted to extend git-describe to also work with blobs, such that `git describe ` gives a description as ':'. This was imple