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

Re: [PATCH] Documentation: fix default directory of git bugreport -o

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 7, 2021, 21:09 UTC
Message-ID
<xmqqa6ko9jol.fsf@gitster.g>
In-Reply-To
<20210903115933.622847-1-bagasdotme@gmail.com>
Bagas Sanjaya <bagasdotme@gmail.com> writes:
Show 9 quoted lines
> git bugreport writes bug report to the current directory by default,
> instead of repository root.
>
> Fix the documentation.
>
> Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
> ---
>  Documentation/git-bugreport.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Emily, ack? It seems that after we cdup to the top, we adjust either the value of -o or "" with the prefix to come up with the output location, so the default seems to be "the current" as the updated documentation says.

Show 17 quoted lines
> diff --git a/Documentation/git-bugreport.txt b/Documentation/git-bugreport.txt
> index 66e88c2e31..d8817bf3ce 100644
> --- a/Documentation/git-bugreport.txt
> +++ b/Documentation/git-bugreport.txt
> @@ -40,8 +40,8 @@ OPTIONS
>  -------
>  -o <path>::
>  --output-directory <path>::
> -	Place the resulting bug report file in `<path>` instead of the root of
> -	the Git repository.
> +	Place the resulting bug report file in `<path>` instead of the current
> +	directory.
>  
>  -s <format>::
>  --suffix <format>::
>
> base-commit: 6c40894d2466d4e7fddc047a05116aa9d14712ee
Previous: Bagas Sanjaya
Message 8 of 8 in “Documentation: fix default directory of git bugreport -o”
  1. Documentation: fix default directory of git bugreport -oBagas Sanjaya, Sep 3, 2021
  2. bugreport papercutsCarlo Marcelo Arenas Belón, Sep 4, 2021
  3. 1/2 bugreport: avoid duplicating options in usage()Carlo Marcelo Arenas Belón, Sep 4, 2021
  4. Junio C HamanoSep 7, 2021
  5. 2/2 bugreport: slightly better memory managementCarlo Marcelo Arenas Belón, Sep 4, 2021
  6. Junio C HamanoSep 7, 2021
  7. Bagas SanjayaSep 4, 2021
  8. Junio C HamanoSep 7, 2021

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.