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

[GSoC] Unify ref-filter formats with other --pretty formats

From
KJKapil Jain <jkapil.cs@gmail.com>
Date
Mar 25, 2019, 19:26 UTC
Message-ID
<CAMknYEPrrpxESK0onwTHRbVwcZE2YQpT=RVzjb9JfEBEXt4NRA@mail.gmail.com>
Hi,

Below are some two queries concerning https://git.github.io/SoC-2019-Ideas/#unify-ref-filter-formats-with-other---pretty-formats

Q1)

In pretty.h & pretty.c: void get_commit_format(const char *arg, struct rev_info *); This function Parses given arguments from "arg", checks it for correctness and * fill struct rev_info.

In ref-filter.h & ref-filter.c: int verify_ref_format(struct ref_format *format); This function is Used to verify if the given format is correct and to parse out the used atoms.

Now, the verify_ref_format function can be used inside get_commit_format function, hence reusing logic. Is this a correct example to work on, for this project ? If not, please point out an example so as to understand the problem statement better.

Other than this I can't find any other example, for this project in pretty.* and ref-filter.* Perhaps some examples could be found in command specific files, right ?

Q2) About a recurring term 'atom' in ref-filter and pretty: what is atom ? is it a piece of a whole document ? and what is meant by used atoms ?

Thanks.
Next: Olga Telezhnaya
Message 1 of 9 in “[GSoC] Unify ref-filter formats with other --pretty formats”
  1. Kapil JainMar 25, 2019
  2. Olga TelezhnayaMar 25, 2019
  3. Kapil JainMar 27, 2019
  4. Olga TelezhnayaMar 28, 2019
  5. Kapil JainMar 29, 2019
  6. Kapil JainMar 31, 2019
  7. Thomas GummererMar 31, 2019
  8. Kapil JainApr 1, 2019
  9. Olga TelezhnayaMar 31, 2019

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.