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 25, 2012, 00:06 UTC
Message-ID
<20121125000605.GA22548@thyrsus.com>
In-Reply-To
<20121124151127.GA24459@padd.com>
Working on my revised patch...
Pete Wyckoff <pw@padd.com>:
Show 5 quoted lines
> Nice start.  A few other details; I recently did this for git-p4
> (python).
> 
> .gitignore: ignore the auto-generated script, e.g. when
> git-foo.py is built into git-foo.
Added:
    3. If your command is implemented in an interpreted language with a 
    p-code intermediate form, make sure .gitignore in the main directory
    includes a pattern entry that ignores such files.  Python .pyc and
    .pyo files will already be covered.
> INSTALL: note language requirements if odd (see python section)
Added:
    4. If your command has dependency on a particular version, document
    it in the INSTALL file.
 
> command-list.txt: categorization of commands for git(1) etc.
Are the values in the right-hand column documented somewhere?  What
uses them, and for what purposes.
 
> RelNotes: Junio generally does this.
Added:
    6. When your patch is merged, remind the maintainer to add something
    about it in the RelNotes file.
 
Show 5 quoted lines
> Also please read Documentation/technical/api-builtin.txt to
> see how to add a built-in command.  It also has comments that
> are identical for both built-in and stand-alone command.  Could
> be that your text would better go near or with that one, as perhaps
> api-command.txt.
I think this is a good suggestion and will implement it.

If someone can explain the values used in command-list.txt, or (better) point me to documentation of them, that will enable me to finish the revised patch.

-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Previous: Eric S. RaymondNext: Michael Haggerty
Message 4 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.