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

Re: 'typechange' in the git-status output

From
Jeff King <peff@peff.net>
Date
Mar 14, 2011, 18:39 UTC
Message-ID
<20110314183947.GA21070@sigill.intra.peff.net>
In-Reply-To
<AANLkTimWR0avW6mBWGa0ArVB8oZUM7nuvc5AYf=wgU-W@mail.gmail.com>
On Mon, Mar 14, 2011 at 08:29:57PM +0200, Alexei Sholik wrote:
> But then, after copying the whole directory with 'cp -r' and running
> git-status in the newly created directory, I get the following:

"cp -r" isn't an exact copy. You probably want "cp -a" or at least "cp -rs".

Show 6 quoted lines
> > # On branch master
> > # Changed but not updated:
> > #   (use "git add <file>..." to update what will be committed)
> > #   (use "git checkout -- <file>..." to discard changes in working directory)
> > #
> > #	typechange: RelNotes

Right. RelNotes is a symlink. But "cp -r" dereferences the symlink and copies the file contents themselves.

> What happened with the copied repository? I've found a couple of
> instances of the word 'typechange' in the source, but no mention in
> the docs. What does it mean and what could be the cause of this
> change?

It's the same as the "T" flag in "git diff --name-status". Namely, the type of the file changed (between a symlink and a regular file).

-Peff
Previous: Alexei SholikNext: Alexei Sholik
Message 2 of 7 in “'typechange' in the git-status output”
  1. Alexei SholikMar 14, 2011
  2. Jeff KingMar 14, 2011
  3. Alexei SholikMar 14, 2011
  4. Drew NorthupMar 14, 2011
  5. Jonathan NiederMar 14, 2011
  6. Jeff KingMar 14, 2011
  7. Junio C HamanoMar 14, 2011

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.