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

Re: [PATCH 1/2] Introduce git-run-with-user-path helper program.

From
Petr Baudis <pasky@ucw.cz>
Date
May 17, 2005, 19:03 UTC
Message-ID
<20050517190355.GA7136@pasky.ji.cz>
In-Reply-To
<7voebbpuxs.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Mon, May 16, 2005 at 08:05:19AM CEST, I got a letter where Junio C Hamano <junkio@cox.net> told me that...

Show 22 quoted lines
> --- a/paths.c
> +++ b/paths.c
> @@ -0,0 +1,199 @@
> +static int initialize_ignore_list(void)
> +{
> +	/* Put the Porcelain layer ignore logic initialization here.
> +	 * Return non-zero after issuing appropriate error message
> +	 * if initialization fails.
> +	 */
> +	return 0;
> +}
> +
> +int path_ignored(const char *path)
> +{
> +	if (!verify_path(path))
> +		return 1;
> +
> +	/* Put the Porcelain layer ignore logic here.
> +	 * Return non-zero if path is to be ignored.
> +	 */
> +	return 0;
> +}

I actually think you shouldn't. All the Porcelain layers should hopefully use the same git toolkit layer, not each one shipping own due to differences in things like this.

If we don't agree on something common (implemented in a way to be still circumventable by a porcelain layer if desired), I wouldn't put the ignore logic inside at all.

> +/****************************************************************/
> +
> +/* Path canonicalization part */
And why is this in the library?
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 15 in “Introduce git-run-with-user-path helper program.”
  1. 1/2 Introduce git-run-with-user-path helper program.Junio C Hamano, May 16, 2005
  2. Petr BaudisMay 17, 2005
  3. Junio C HamanoMay 17, 2005
  4. Petr BaudisMay 17, 2005
  5. Junio C HamanoMay 17, 2005
  6. Petr BaudisMay 17, 2005
  7. Junio C HamanoMay 17, 2005
  8. Petr BaudisMay 18, 2005
  9. Junio C HamanoMay 18, 2005
  10. Petr BaudisMay 18, 2005
  11. Junio C HamanoMay 18, 2005
  12. Linus TorvaldsMay 19, 2005
  13. Junio C HamanoMay 19, 2005
  14. Thomas GlanzmannMay 19, 2005
  15. Junio C HamanoMay 19, 2005

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.