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

Re: msysgit, help: teach git help to open html from /doc/git/html/

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Aug 12, 2007, 00:10 UTC
Message-ID
<fcaeb9bf0708111710m1eca7a82t71d471e40e84ef93@mail.gmail.com>
In-Reply-To
<51772B53-642F-4D52-9CF3-906A21FC0D6F@zib.de>
This reminds me a patch I made before:
http://thread.gmane.org/gmane.comp.version-control.git/49217/focus=49575

With a little modification you can use ShellExecute to open html if there is no suitable program to open it. The last commit on mingw.git's mob branch does that (not based on my mentioned patch though).

On 8/11/07, Steffen Prohaska <prohaska@zib.de> wrote:
Show 57 quoted lines
> I pushed the following patch to 4msysgit.git's mob branch
>
> [ I finally found the mob branch at
> ssh://mob@repo.or.cz/srv/git/git/mingw/4msysgit.git
> which apparently was one git too much for my brain. ]
>
>
> commit a9a42a347894edfbca33e48bed0fcd38ec334a35
>
>      help (msysgit): teach git help to open html from /doc/git/html/
>
>      Html pages will be opened using the default Windows application
>      configured for html. This code path is taken for msysgit (mingw).
>
>      It is assumed that html pages are installed at /doc/git/html.
>      This needs to be ensured by the msysgit superproject to make this
>      patch useful. html pages should be cloned from git.git's main
>      repo. This is the easiest way to get up-to-date documentation,
>      without requiring the complete tool chain to generate them
>      locally.
>
>      If html pages are not yet there, you can use the following
>      commands to get them:
>
>          mkdir -p /doc/git/html
>          cd /doc/git/html/
>          git init
>          git config remote.origin.url git://git.kernel.org/pub/scm/
> git/git.git
>          git config remote.origin.fetch refs/heads/html:refs/remotes/
> origin/html
>          git fetch
>          git checkout --track -b html origin/html
>
>      and update the html documentation with
>
>          git pull
>
> The superproject should be setup in /share/GitMe/setup-msysgit.sh to
> fetch the html pages as a submodule. But I don't understanding
> submodules good enough to do so.
>
> If you then type 'git help <command>' Firefox or Explorer or whatever
> you configured as your default html viewer will show you the git help.
> I think this is a good idea for Windows users.
>
>
> Junio,
> are you interested in such patches at this time. The patch doesn't
> interfere with the existing code, but clutters it with ifdefs.
>
>         Steffen
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
-- 
Duy
Previous: Steffen ProhaskaNext: Nguyen Thai Ngoc Duy
Message 4 of 6 in “msysgit, help: teach git help to open html from /doc/git/html/”
  1. Steffen ProhaskaAug 11, 2007
  2. Junio C HamanoAug 11, 2007
  3. Steffen ProhaskaAug 11, 2007
  4. Nguyen Thai Ngoc DuyAug 12, 2007
  5. Nguyen Thai Ngoc DuyAug 12, 2007
  6. Steffen ProhaskaAug 12, 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.