Re: [PATCH 3/3] Teach "git branch" about --new-workdir
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 23, 2007, 10:42 UTC
- Message-ID
- <Pine.LNX.4.64.0707231141080.14781@racer.site>
- In-Reply-To
- <Pine.LNX.4.64.0707231129010.14781@racer.site>
Hi,
On Mon, 23 Jul 2007, Johannes Schindelin wrote:
Show 11 quoted lines
> struct stat st;
> int i = 0;
>
> while (i++ < 10 && !lstat(path, &st) && S_ISLNK(st.st_mode)) {
> ssize_t sz;
> static char target[PATH_MAX];
> sz = readlink(path, target, sizeof(target));
> if (sz < 0)
> die("Cannot readlink %s", path);
> else
> path = target;Probably this should be "make_absolute_path(target)" after applying the minipatch I provided elsewhere.
Ciao, Dscho