Re: Difficulty adding a symbolic link, part 3

2013-08-01 Thread Duy Nguyen
On Thu, Aug 1, 2013 at 10:00 PM, Dale R. Worley wrote: >> From: Duy Nguyen > >> > Can someone give me advice on what this code *should* do? >> >> It does as the function name says: given cwd, a prefix (i.e. a >> relative path with no ".." components) and a path relative to >> cwd+prefix, convert

Re: Difficulty adding a symbolic link, part 3

2013-08-01 Thread Dale R. Worley
> From: Duy Nguyen > > Can someone give me advice on what this code *should* do? > > It does as the function name says: given cwd, a prefix (i.e. a > relative path with no ".." components) and a path relative to > cwd+prefix, convert 'path' to something relative to cwd. In the > simplest case, p

Re: Difficulty adding a symbolic link, part 3

2013-08-01 Thread Dale R. Worley
> From: Duy Nguyen > > With the above change, the test suite runs with zero failures, so it > > doesn't affect any common Git usage. > > It means the test suite is incomplete. As you can see, the commit > introducing this change does not come with a test case to catch people > changing this. Wh

Re: Difficulty adding a symbolic link, part 3

2013-07-31 Thread Duy Nguyen
On Thu, Aug 1, 2013 at 3:29 AM, Dale R. Worley wrote: > I've run into a problem (with Git 1.8.3.3) where I cannot add a > symbolic link (as such) to the repository *if* its path is given > absolutely; instead Git adds the file the symbolic link points to. > (If I give the path relatively, Git does

Difficulty adding a symbolic link, part 3

2013-07-31 Thread Dale R. Worley
I've run into a problem (with Git 1.8.3.3) where I cannot add a symbolic link (as such) to the repository *if* its path is given absolutely; instead Git adds the file the symbolic link points to. (If I give the path relatively, Git does what I expect, that is, adds the symbolic link.) I've written

Difficulty adding a symbolic link, part 2

2013-06-24 Thread Dale R. Worley
Here's a slightly simpler test case for adding a symbolic link. This test exploits the fact that on my system, /bin/awk is a symbolic link to "gawk". As you can see, the behavior of Git differs if the link's path is given to "git add" as an absolute path or a relative path. Here is the test scri

Difficulty adding a symbolic link

2013-06-14 Thread Dale R. Worley
I'm having a problem with "git add" in version 1.7.7.6. The situation is that I have a repository that is contained in a second-level directory, a sub-sub-directory of "/". The core.worktree of the repository is "/", so the working directory is the entire file tree. I want this repository to tra