Re: [PATCH v6 2/4] cat-file: teach cat-file a '--literally' option

2015-04-03 Thread karthik nayak
On 04/03/2015 12:38 AM, Junio C Hamano wrote: Karthik Nayak karthik@gmail.com writes: 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

[PATCH v6 2/4] cat-file: teach cat-file a '--literally' option

2015-04-02 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

Re: [PATCH v6 2/4] cat-file: teach cat-file a '--literally' option

2015-04-02 Thread Junio C Hamano
Karthik Nayak karthik@gmail.com writes: 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