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

Re: [PATCH 1/3] git-help: add -i|--info option to display info page.

From
Pascal Obry <pascal@obry.net>
Date
Dec 3, 2007, 18:45 UTC
Message-ID
<47544EE5.1050707@obry.net>
In-Reply-To
<200712030653.15694.chriscool@tuxfamily.org>
Christian Couder a écrit :
> So if someone has information about how "woman" or other web or man or info 

Ok about woman. Woman is an Emacs mode to display man pages. To send man page to display in Emacs from the command line one can use emacsclient for example. I'm already doing this for standard man pages with a bash function. This function does something like this:

   $ emacsclient -e '(woman "git")'
-e is for eval and the argument is the Emacs Lisp string to evaluate.
Let me know if you need more information about woman.

I think it would be nice to be able to define a Git alias. In the string some %x could be replaced by the man page requested. We could define multiple replacements:

   %n  -  the man entry (git-commit)
   %s  -  the simple name of the man page (git-commit.1)
   %f  -  the full pathname of the man page (/usr/man/man1/git-commit.1)
   %i  -  the full pathname of the info page

With this I think it should be possible to define and configure any external tool to display the man page.

This would be more versatile and could be used to display info or man using whatever tool.

Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Previous: Christian CouderNext: Christian Couder
Message 5 of 6 in “git-help: add -i|--info option to display info page.”
  1. 1/3 git-help: add -i|--info option to display info page.Christian Couder, Dec 2, 2007
  2. Pascal ObryDec 2, 2007
  3. Junio C HamanoDec 2, 2007
  4. Christian CouderDec 3, 2007
  5. Pascal ObryDec 3, 2007
  6. Christian CouderDec 4, 2007

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.