Re: [PATCH v4 1/2] cat-file: teach cat-file a '--literally' option

2015-03-17 Thread Karthik Nayak
On March 17, 2015 12:21:33 PM GMT+05:30, Eric Sunshine wrote: >On Tue, Mar 17, 2015 at 1:16 AM, Karthik Nayak >wrote: >> diff --git a/builtin/cat-file.c b/builtin/cat-file.c >> index df99df4..1625246 100644 >> --- a/builtin/cat-file.c >> +++ b/builtin/cat-file.c >> @@ -323,8 +338,8 @@ static i

Re: [PATCH v4 1/2] cat-file: teach cat-file a '--literally' option

2015-03-16 Thread Eric Sunshine
On Tue, Mar 17, 2015 at 1:16 AM, Karthik Nayak wrote: > diff --git a/builtin/cat-file.c b/builtin/cat-file.c > index df99df4..1625246 100644 > --- a/builtin/cat-file.c > +++ b/builtin/cat-file.c > @@ -323,8 +338,8 @@ static int batch_objects(struct batch_options *opt) > } I don't presently have

[PATCH v4 1/2] cat-file: teach cat-file a '--literally' option

2015-03-16 Thread Karthik Nayak
Currently 'git cat-file' throws an error while trying to print the type or size of a broken/corrupt object which is created using 'git hash-object --literally'. This is because these objects are usually of unknown types. Teach git cat-file a '--literally' option where it prints the type or size of