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

Re: [PATCH] "git help -a" should search all exec_paths and PATH

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Oct 22, 2007, 06:06 UTC
Message-ID
<471C3DD4.90505@viscovery.net>
In-Reply-To
<20071021214846.GI16291@srparish.net>
Scott R Parish schrieb:
> +	if (!dirp || chdir(dir)) {
> +		fchdir(start_dir);
/me dislikes this. Windows doesn't have fchdir().

AFAIKS you are only using this to chdir back to where you started, but is this necessary? Aren't we exiting anyway after the command list was printed?

-- Hannes
Previous: Shawn O. Pearce
Message 7 of 7 in “"git help -a" should search all exec_paths and PATH”
  1. "git help -a" should search all exec_paths and PATHScott R Parish, Oct 21, 2007
  2. Johannes SchindelinOct 21, 2007
  3. Scott ParishOct 22, 2007
  4. Shawn O. PearceOct 22, 2007
  5. Scott ParishOct 22, 2007
  6. Shawn O. PearceOct 22, 2007
  7. Johannes SixtOct 22, 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.