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

Re: [RFC/PATCH] Prettify log decorations even more

From
Jeff King <peff@peff.net>
Date
May 8, 2009, 07:45 UTC
Message-ID
<20090508074507.GF12989@coredump.intra.peff.net>
In-Reply-To
<1241649948-11765-1-git-send-email-felipe.contreras@gmail.com>
On Thu, May 07, 2009 at 01:45:48AM +0300, Felipe Contreras wrote:
> -extern const char *prettify_ref(const struct ref *ref);
> +extern const char *prettify_refname(const char *refname);
> +#define prettify_ref(ref) prettify_refname((ref)->name)

I think it is an improvement for this function to take just the name, but I don't see much point in keeping the crufty #define compatibility. I would just fix up the few callers, as it really is just s/ref/ref->name/.

-Peff
Previous: Felipe ContrerasNext: Felipe Contreras
Message 2 of 3 in “Prettify log decorations even more”
  1. Prettify log decorations even moreFelipe Contreras, May 6, 2009
  2. Jeff KingMay 8, 2009
  3. Felipe ContrerasMay 8, 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.