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

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

From
Philip Oakley <philipoakley@iee.org>
Date
Oct 30, 2016, 20:09 UTC
Message-ID
<223121D101D844DEBF086AC40A5AF4CB@PhilipOakley>
In-Reply-To
<alpine.DEB.2.10.1610301503280.60842@buzzword-bingo.mit.edu>
From: "Anders Kaseorg" <andersk@mit.edu>
Show 16 quoted lines
> On Sun, 30 Oct 2016, Ævar Arnfjörð Bjarmason wrote:
>> 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?
>
> It is documented (Documentation/git-sh-setup.txt), and this is not the
> internal Documentation/technical section of the documentation, so my
> default assumption would be that everything shown there is intended as
> public.  I only bring this up as a question because it was apparently
> allowed to break.  If I’m wrong and it isn’t public, other patches are
> needed (to the documentation and to its users in contrib).
>
But the Documenation does say ::
- This is not a command the end user would want to run. Ever.
- This documentation is meant for people who are studying the Porcelain-ish 
scripts and/or are writing new ones.
--
So there is a cautionary word or two there...

The question would then become: what (if anything) was missing in the documentation?... maybe the inclusion of Ævar's "[Not] to be used by outside scripts that didn't ship as part of git itself."? Or a comment that it may change in newer versions. Though the code fix may still be reasonable..

Philip 
Previous: Anders KaseorgNext: Jeff King
Message 4 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.