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

[PATCH 2/3] Prettify log decorations even more

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 13, 2009, 21:22 UTC
Message-ID
<1242249726-8514-3-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1242249726-8514-2-git-send-email-felipe.contreras@gmail.com>
"tag: v1.6.2.5" looks much better than "tag: refs/tags/v1.6.2.5".
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 log-tree.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/log-tree.c b/log-tree.c
index 5bd29e6..59d63eb 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -25,6 +25,7 @@ static int add_ref_decoration(const char *refname, const unsigned char *sha1, in
 	struct object *obj = parse_object(sha1);
 	if (!obj)
 		return 0;
+	refname = prettify_refname(refname);
 	add_name_decoration("", refname, obj);
 	while (obj->type == OBJ_TAG) {
 		obj = ((struct tag *)obj)->tagged;
-- 
1.6.3.1
Previous: Felipe ContrerasNext: Felipe Contreras
Message 3 of 7 in “log: prettier decorations”
  1. 0/3 log: prettier decorationsFelipe Contreras, May 13, 2009
  2. 1/3 Change prettify_ref to prettify_refnameFelipe Contreras, May 13, 2009
  3. 2/3 Prettify log decorations even moreFelipe Contreras, May 13, 2009
  4. 3/3 Fix test for new log decorateFelipe Contreras, May 13, 2009
  5. Jeff KingMay 13, 2009
  6. 2/2 Prettify log decorations even moreFelipe Contreras, May 13, 2009
  7. Felipe ContrerasMay 13, 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.