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

Re: [msysGit] git rev-parse broken on Git for Windows

From
Thomas Rast <trast@student.ethz.ch>
Date
Jul 30, 2010, 09:02 UTC
Message-ID
<201007301102.15274.trast@student.ethz.ch>
In-Reply-To
<alpine.DEB.1.00.1007301022310.2983@bonsai2>
Johannes Schindelin wrote:
Show 13 quoted lines
> Hi,
> 
> On Thu, 29 Jul 2010, Joshua Jensen wrote:
> 
> >  9c7304e3e39ed397b3cc6566573333e2698a52b4 (print the usage string on stdout
> > instead of stderr) and then 47e9cd28f8a404a0d6293935252ddca5fc243931
> > (parseopt: wrap rev-parse --parseopt usage for eval consumption) break the
> > following line from the manual and 'git subtree' on msysGit:
> > 
> > eval $(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?)
> 
> Both commits are from Junio's 'next' branch. I Cc:ed the authors of both 
> commits.
Can you elaborate on "break"?

Because as you can see in git-sh-setup.sh, the "official" user of parseopt does

	eval "$(
		echo "$OPTIONS_SPEC" |
			git rev-parse --parseopt $parseopt_extra -- "$@" ||
		echo exit $?
	)"
So AFAICS they only differ in the quoting.  And the latter works.
-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Johannes SchindelinNext: Joshua Jensen
Message 3 of 7 in “git rev-parse broken on Git for Windows”
  1. Joshua JensenJul 30, 2010
  2. Johannes SchindelinJul 30, 2010
  3. Thomas RastJul 30, 2010
  4. Joshua JensenJul 30, 2010
  5. Thomas RastJul 30, 2010
  6. Documentation/rev-parse: quoting is required with --parseoptThomas Rast, Jul 30, 2010
  7. Junio C HamanoJul 30, 2010

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.