git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 25, 2015, 16:13 UTC
Message-ID
<xmqq1tkd3vij.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CABJeaiqhL5eNPkaPpheG_Y47Rapj4ys3igHhFH6YuiroECVGDA@mail.gmail.com>
Shanti Swarup Tunga <b112041@iiit-bh.ac.in> writes:
Show 7 quoted lines
> 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:
 - what does this change try to help and how?
 - why is this patch a good way to achieve that goal?
 - how the users are expected to use the new feature?

in the proposed log message, run existing tests to make sure your change did not break the existing system, add tests to make sure you would notice if somebody else broke the feature you are adding in the future, and describe the new feature in the documentation.

> Will that approach is going to work for the following problem.?

Was your message cut short? We cannot read "the following" problem here...

Previous: Shanti Swarup Tunga
Message 2 of 2 in “about Starter project;implementing log --size in the print_commit function.”
  1. Shanti Swarup TungaMar 23, 2015
  2. Junio C HamanoMar 25, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.