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

Re: [RFC/PATCH] lockfile: show absolute filename in unable_to_lock_message.

From
Johannes Sixt <j6t@kdbg.org>
Date
Jan 6, 2010, 18:50 UTC
Message-ID
<4B44DB6A.2050804@kdbg.org>
In-Reply-To
<1262797288-23004-1-git-send-email-Matthieu.Moy@imag.fr>
Matthieu Moy schrieb:
Show 6 quoted lines
> -		    path, strerror(err));
> +			    make_absolute_path(path), strerror(err));
>  	} else
> -		strbuf_addf(&buf, "Unable to create '%s.lock': %s", path, strerror(err));
> +		strbuf_addf(&buf, "Unable to create '%s.lock': %s",
> +			    make_absolute_path(path), strerror(err));

Since these are merely informative, wouldn't it be more suitable to use make_nonrelative_path()?

-- Hannes
Previous: Matthieu MoyNext: Matthieu Moy
Message 2 of 5 in “lockfile: show absolute filename in unable_to_lock_message.”
  1. lockfile: show absolute filename in unable_to_lock_message.Matthieu Moy, Jan 6, 2010
  2. Johannes SixtJan 6, 2010
  3. lockfile: show absolute filename in unable_to_lock_message.Matthieu Moy, Jan 7, 2010
  4. Matthieu MoyJan 12, 2010
  5. Junio C HamanoJan 13, 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.