Re: about Starter project;implementing log --size in the print_commit function.

2015-03-25 Thread Junio C Hamano
Shanti Swarup Tunga writes: > I inserted a size variable of int type and calculated size in each > cases of print_commit(). The function is > > static void print_commit(git_commit *commit) > { > ... > } See Documentation/SubmittingPatches and then also CodingGuidelines Especially, explain: -

about Starter project;implementing log --size in the print_commit function.

2015-03-23 Thread Shanti Swarup Tunga
I inserted a size variable of int type and calculated size in each cases of print_commit(). The function is static void print_commit(git_commit *commit) { char buf[GIT_OID_HEXSZ + 1]; int i, count; const git_signature *sig; const char *scan, *eol; int size=0; git_oid_tostr