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

Re: Slight enhancement of GIT wrapper

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 13, 2005, 23:07 UTC
Message-ID
<Pine.LNX.4.58.0504140106470.15139@wgmdd8.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20050413225509.GL25711@pasky.ji.cz>
Hi,
On Thu, 14 Apr 2005, Petr Baudis wrote:
Show 8 quoted lines
> Dear diary, on Wed, Apr 13, 2005 at 10:49:16PM CEST, I got a letter
> where Pavel Pisa <pisa@cmp.felk.cvut.cz> told me that...
>
> > +
> > +if [ -h "$0" ]; then
> > +  GIT_DIR=`ls -l "$0" | sed 's/^.*-> *\(.*\) *$/\1/'`
>
> Well, I don't like this much, but I'm not sure how to do better.
How about
	GIT_DIR=$(ls -L "$0")

Ciao, Dscho

Previous: Petr BaudisNext: Johannes Schindelin
Message 2 of 5 in “Re: Slight enhancement of GIT wrapper”
  1. Petr BaudisApr 13, 2005
  2. Johannes SchindelinApr 13, 2005
  3. Johannes SchindelinApr 13, 2005
  4. GIT and COGITO individual scripts hidding from PATHPavel Pisa, May 27, 2005
  5. Pavel PisaMay 27, 2005

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.