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

Re: [PATCH] remote: add meaningful exit code on missing/existing

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Oct 26, 2020, 19:55 UTC
Message-ID
<CAKPyHN0Dbk+fqYR-5-RMUanJXFqjzh_w6zd0QXnM1fMpSUDJ3Q@mail.gmail.com>
In-Reply-To
<20201026144825.26537-1-avarab@gmail.com>

On Mon, Oct 26, 2020 at 3:48 PM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

Show 14 quoted lines
> diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt
> index 9659abbf8e..c1f1355f52 100644
> --- a/Documentation/git-remote.txt
> +++ b/Documentation/git-remote.txt
> @@ -203,6 +203,17 @@ The remote configuration is achieved using the `remote.origin.url` and
>  `remote.origin.fetch` configuration variables.  (See
>  linkgit:git-config[1]).
>
> +EXIT STATUS
> +-----------
> +
> +On success, the exit status is `0`.
> +
> +When subcommands such as 'add', 'rename' and 'remove' can't find the
at least a comma before 'and', but I consider 'or' better here anyway:
When subcommands such as 'add', 'rename', or 'remove' can't find the
Bert
Show 8 quoted lines
> +remote in question the exit status is `2`, when the remote already
> +exists the exit status is `3`.
> +
> +On any other error, the exit status may be any other non-zero value.
> +
>  EXAMPLES
>  --------
>
Previous: Ævar Arnfjörð Bjarmason
Message 7 of 7 in “remote: add meaningful exit code on missing/existing”
  1. remote: add meaningful exit code on missing/existingÆvar Arnfjörð Bjarmason, Oct 26, 2020
  2. Eric SunshineOct 26, 2020
  3. Junio C HamanoOct 26, 2020
  4. Jeff KingOct 26, 2020
  5. Junio C HamanoOct 26, 2020
  6. remote: add meaningful exit code on missing/existingÆvar Arnfjörð Bjarmason, Oct 27, 2020
  7. Bert WesargOct 26, 2020

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.