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

Re: [PATCH] git-sh-setup: Restore sourcability from outside scripts

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 30, 2016, 17:55 UTC
Message-ID
<CACBZZX4SnJj6ZYK-Ha3EtiWUf_n=+LZ=UeS=7vxgsj8s=bi3Sg@mail.gmail.com>
In-Reply-To
<alpine.DEB.2.10.1610292153300.60842@buzzword-bingo.mit.edu>
On Sun, Oct 30, 2016 at 3:10 AM, Anders Kaseorg <andersk@mit.edu> wrote:
Show 6 quoted lines
> v2.10.0-rc0~45^2~2 “i18n: git-sh-setup.sh: mark strings for
> translation” broke outside scripts such as guilt that source
> git-sh-setup as described in the documentation:
>
> $ . "$(git --exec-path)/git-sh-setup"
> sh: 6: .: git-sh-i18n: not found

This seems like a reasonable fix for this issue. However as far as I can tell git-sh-setup was never meant to be used by outside scripts that didn't ship as part of git itself.

If that's the case any change in the API which AFAICT is now considered internal might break them, so should some part of that be made public & documented as such?

Previous: Anders KaseorgNext: Anders Kaseorg
Message 2 of 9 in “git-sh-setup: Restore sourcability from outside scripts”
  1. git-sh-setup: Restore sourcability from outside scriptsAnders Kaseorg, Oct 30, 2016
  2. Ævar Arnfjörð BjarmasonOct 30, 2016
  3. Anders KaseorgOct 30, 2016
  4. Philip OakleyOct 30, 2016
  5. Jeff KingOct 30, 2016
  6. Ævar Arnfjörð BjarmasonOct 30, 2016
  7. Junio C HamanoOct 30, 2016
  8. Anders KaseorgOct 31, 2016
  9. Junio C HamanoOct 30, 2016

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.