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

Re: [RFC/PATCH 2/4] textconv: make diff_options accessible from blame

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 4, 2010, 05:48 UTC
Message-ID
<7vvd9z5owr.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1275562038-7468-3-git-send-email-axel.bonnet@ensimag.imag.fr>
Axel Bonnet <axel.bonnet@ensimag.imag.fr> writes:
Show 6 quoted lines
> Diff_options specify whether conversion is activated or not. Blame needs
> to access these options in order to concert files with external drivers
>
> Signed-off-by: Diane Gasselin <diane.gasselin@ensimag.imag.fr>
> Signed-off-by: Clément Poulain <clement.poulain@ensimag.imag.fr>
> Signed-off-by: Axel Bonnet <axel.bonnet@ensimag.imag.fr>

The name of Clément is spelled correctly on the mail header while S-o-b line is corrupt. Perhaps you have recorded your commits in UTF-8 but allowed your MUA to send in 8859-1? This comment applies to all the patches in the series.

Show 14 quoted lines
> diff --git a/builtin/blame.c b/builtin/blame.c
> index fc15863..63b497c 100644
> --- a/builtin/blame.c
> +++ b/builtin/blame.c
> @@ -89,7 +89,8 @@ struct origin {
>   * Given an origin, prepare mmfile_t structure to be used by the
>   * diff machinery
>   */
> -static void fill_origin_blob(struct origin *o, mmfile_t *file)
> +static void fill_origin_blob(struct diff_options opt,
> +			     struct origin *o, mmfile_t *file)
>  {
>  	if (!o->file.ptr) {
>  		enum object_type type;
Two points.
 * Generally we do not want to pass structures by value.  It is especially
   true when the structure is bigger than one word, and accesses to the
   variable in the callee is read-only.
 * The callee does not seem to use the new parameter yet.  You might want
   to defer this change until fill-origin-blob actually starts using it.
Previous: Jeff KingNext: Matthieu Moy
Message 13 of 16 in “textconv support for blame”
  1. 0/4 textconv support for blameAxel Bonnet, Jun 3, 2010
  2. 1/4 textconv: make the API publicAxel Bonnet, Jun 3, 2010
  3. 2/4 textconv: make diff_options accessible from blameAxel Bonnet, Jun 3, 2010
  4. 3/4 textconv: support for blameAxel Bonnet, Jun 3, 2010
  5. 4/4 t/t8006: test textconv support for blameAxel Bonnet, Jun 3, 2010
  6. Johannes SixtJun 3, 2010
  7. Diane GasselinJun 4, 2010
  8. Matthieu MoyJun 4, 2010
  9. Matthieu MoyJun 4, 2010
  10. Junio C HamanoJun 4, 2010
  11. Diane GasselinJun 4, 2010
  12. Jeff KingJun 6, 2010
  13. Junio C HamanoJun 4, 2010
  14. Matthieu MoyJun 4, 2010
  15. bonnetaJun 4, 2010
  16. Matthieu MoyJun 4, 2010

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.