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

Re: [PATCH] fix "builtin-*" references to be "builtin/*"

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 18, 2013, 17:06 UTC
Message-ID
<7vd2rj5ox7.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1371571166-6481-1-git-send-email-hordp@cisco.com>
Phil Hord <hordp@cisco.com> writes:
Show 11 quoted lines
> diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
> index e831cc2..2483700 100644
> --- a/Documentation/user-manual.txt
> +++ b/Documentation/user-manual.txt
> @@ -4256,7 +4256,7 @@ no longer need to call `setup_pager()` directly).
>  Nowadays, `git log` is a builtin, which means that it is _contained_ in the
>  command `git`.  The source side of a builtin is
>  
> -- a function called `cmd_<bla>`, typically defined in `builtin-<bla>.c`,
> +- a function called `cmd_<bla>`, typically defined in `builtin/<bla>.c`,
>    and declared in `builtin.h`,

If we were to do this, we would need to update the "1.5.3 or newer" comment at the top of this file to "1.7.1 or newer" ;-).

More seriously, it may be OK to say
	typically defined in `builtin/<bla.c>` (note that older
	versions of Git used to have it in `builtin-<bla>.c`
	instead), and declared in `builtin.h`.

only here, and then apply your s|builtin-|builtin/| changes to the remainder of this file.

Show 11 quoted lines
> diff --git a/builtin/help.c b/builtin/help.c
> index 062957f..ce7b889 100644
> --- a/builtin/help.c
> +++ b/builtin/help.c
> @@ -1,5 +1,5 @@
>  /*
> - * builtin-help.c
> + * builtin/help.c
>   *
>   * Builtin help command
>   */

As Jonathan said, dropping this line (and the line after it) would be a sane thing to do.

Other than that, the patch looked good.
Previous: Jonathan Nieder
Message 3 of 3 in “fix "builtin-*" references to be "builtin/*"”
  1. fix "builtin-*" references to be "builtin/*"Phil Hord, Jun 18, 2013
  2. Jonathan NiederJun 18, 2013
  3. Junio C HamanoJun 18, 2013

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.