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

Re: [PATCH] rerere: remove duplicated functions

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 14, 2009, 18:47 UTC
Message-ID
<alpine.DEB.1.00.0902141944030.10279@pacific.mpi-cbg.de>
In-Reply-To
<1234628284-4246-1-git-send-email-szeder@ira.uka.de>
Hi,
On Sat, 14 Feb 2009, SZEDER Gábor wrote:
Show 10 quoted lines
> diff --git a/rerere.h b/rerere.h
> index f9b0386..45b5087 100644
> --- a/rerere.h
> +++ b/rerere.h
> @@ -5,5 +5,7 @@
>  
>  extern int setup_rerere(struct string_list *);
>  extern int rerere(void);
> +extern const char *rr_path(const char *name, const char *file);
> +extern int has_resolution(const char *name);

You might argue that rr_path() is a unique enough name (although I'd rather name it rerere_path() instead), but has_resolution() is not a good description of what the function does when it lives in the global name space. has_rerere_resolution() (with "hex" instead of "name", to make it obvious what the parameter actually _is_) should be a much better name.

Thanks, Dscho

Previous: SZEDER GáborNext: SZEDER Gábor
Message 2 of 5 in “rerere: remove duplicated functions”
  1. rerere: remove duplicated functionsSZEDER Gábor, Feb 14, 2009
  2. Johannes SchindelinFeb 14, 2009
  3. rerere: remove duplicated functionsSZEDER Gábor, Feb 14, 2009
  4. Johannes SchindelinFeb 14, 2009
  5. Junio C HamanoFeb 15, 2009

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.