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

Re: [PATCH] Add documentation on how to integrate commands.

From
Eric S. Raymond <esr@thyrsus.com>
Date
Nov 26, 2012, 05:25 UTC
Message-ID
<20121126052500.GA15605@thyrsus.com>
In-Reply-To
<7vy5hpvukk.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com>:
Show 5 quoted lines
> As the first sentence in this paragraph does not make it clear
> enough that you are defining a new term "git execution directory",
> "execution directory" here may be misleading and can easily be
> mistaken as if we look something in the directory where the user
> runs "git" in.  We usually call it "exec path".
Fixed.
> Actually, we tend to avoid Python dependency for anything important
> and allow it only on fringes; people who lack Python environment are
> not missing much, and we would want to keep it that way until the
> situation on the Windows front changes.
Added:
    Python is fine for import utilities, surgical tools, remote helpers
    and other code at the edges of the git suite - but it should not yet
    be used for core functions. This may change in the future; the problem
    is that we need better Python integration in the git Windows installer
    before we can be confident people in that environment won't
    experience an unacceptably large loss of capability.

I will also take this as a part-resolution of the related policy thread. Issue perhaps to be revisited when the Windows port gets the Python support to a good state.

I will submit for separate consideration a patch proposing the following new guidelines:

1. Python code SHOULD NOT require an interpreter version newer than 2.6.
2. Python code SHOULD check the interpreter version and exit gracefully
   with an explanation if it detects that its dependency cannot be satisfied.
> I would prefer to see this sentence not call libgit.a a "library".
> We primarily use libgit.a to let linker pick necessary object files
> without us having to list object files for non-builtin command
> implementations and it is not designed to be used by other people.
Fixed.  I now refer to it as a "collection of functions".
> And when sending a patch in, do not forget to sign off your patches
> ;-)
Added.  I will submit a third time with a signoff. :-)
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Previous: Junio C Hamano
Message 8 of 8 in “Add documentation on how to integrate commands.”
  1. Add documentation on how to integrate commands.Eric S. Raymond, Nov 24, 2012
  2. Pete WyckoffNov 24, 2012
  3. Eric S. RaymondNov 24, 2012
  4. Eric S. RaymondNov 25, 2012
  5. Michael HaggertyNov 25, 2012
  6. Eric S. RaymondNov 25, 2012
  7. Junio C HamanoNov 26, 2012
  8. Eric S. RaymondNov 26, 2012

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.