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

Re: [PATCH v2] Document RUN_SETUP_GENTLY

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 30, 2014, 18:29 UTC
Message-ID
<xmqqeh0efz6g.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAE+yK_kwMWRBDEVO=WVh5H-uFQJa2LEezRwbKnduLqoFjWC4zA@mail.gmail.com>
David Turner <dturner@twopensource.com> writes:
Show 8 quoted lines
> Sorry about that -- the documentation of RUN_SETUP confused me.  So I
> have a new patch that edits that as well.
>
> --
> RUN_SETUP_GENTLY and improve RUN_SETUP docs
>
> Signed-off-by: David Turner <dturner@twitter.com>
> ---

You do not want to have "Sorry about that..." in your final commit log message. Please do the above this way if you wanted to:

	Sorry about that ...
	-- >8 --
	Subject: docs: document RUN_SETUP_GENTLY and clarify RUN_SETUP
	We only said what happens when we find the Git directory under
	RUN_SETUP, without saying what happens otherwise.
	Signed-off-by: ...
	---
        $DIFFSTAT
        $PATCH
Show 14 quoted lines
>  Documentation/technical/api-builtin.txt | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/technical/api-builtin.txt
> b/Documentation/technical/api-builtin.txt
> index e3d6e7a..b250c1a 100644
> --- a/Documentation/technical/api-builtin.txt
> +++ b/Documentation/technical/api-builtin.txt
> @@ -23,10 +23,15 @@ where options is the bitwise-or of:
>
>  `RUN_SETUP`::
>
> - Make sure there is a Git directory to work on, and if there is a
> - work tree, chdir to the top of it if the command was invoked
Your mailer ate all the whitespaces and folded the lines, it seems.

I'll fix it up and queue the result on 'pu', so please eyeball it and holler if I made a silly mistake while doing the fixup.

Thanks.
Show 13 quoted lines
> - in a subdirectory.  If there is no work tree, no chdir() is
> - done.
> + If there is not a Git directory to work on, abort.  If there
> + is a work tree, chdir to the top of it if the command was
> + invoked in a subdirectory.  If there is no work tree, no
> + chdir() is done.
> +
> +`RUN_SETUP_GENTLY`::
> +
> + If there is a Git directory, chdir as per RUN_SETUP, otherwise,
> + don't chdir anywhere.
>
>  `USE_PAGER`::
Previous: David Turner
Message 2 of 2 in “Document RUN_SETUP_GENTLY”
  1. Document RUN_SETUP_GENTLYDavid Turner, Apr 29, 2014
  2. Junio C HamanoApr 30, 2014

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.