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

possible regression (or me abusing git) in v1.5.5

From
Ttarmigan+git@gmail.com <tarmigan+git@gmail.com>
Date
Apr 11, 2008, 19:21 UTC
Message-ID
<905315640804111221k53dd7063sae5710ed690114f0@mail.gmail.com>
Hello,

After upgrading to v1.5.5, I noticed a change in the way that git treats symbolic links.

Git will follow symbolic links to directories when they were added as follows

$ git init $ mkdir foo $ touch foo/bar $ ln -s foo foo1 $ git add foo1/ # Note the trailing slash above.

In v1.5.5 (but not v1.5.4.5 and earlier), $ git add -u will remove foo1/bar from the index.

I have bisected this down to f58dbf (diff-files: careful when inspecting work tree items).

The ability for git to follow links (instead of recording them) was a
useful feature for me, but I may have been abusing this "feature".  If
that is the consensus, it might make sense to have
$ git add foo1
and
$ git add foo1/
 behave the same way?

Thanks, Tarmigan

Next: Junio C Hamano
Message 1 of 2 in “possible regression (or me abusing git) in v1.5.5”
  1. tarmigan+git@gmail.comApr 11, 2008
  2. Junio C HamanoApr 11, 2008

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.