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

Re: git history and file moves

From
Alex Riesen <raa.lkml@gmail.com>
Date
Oct 22, 2008, 11:19 UTC
Message-ID
<81b0412b0810220419q43f6985fs1c608e3d3cbcf8f3@mail.gmail.com>
In-Reply-To
<1224640967.14280.0.camel@minggr.sh.intel.com>
2008/10/22 Lin Ming <ming.m.lin@intel.com>:
Show 5 quoted lines
> I'm looking for a way to move files to a new directory and have the
> full history follow the file automatically. Is this possible?
>
> I know about --follow, but I want the history to just follow the file
> transparently. ...

Of all Git tools, what does not do this "transparently" or "automatically"? How more transparent do you imagine this? What do you think should follow what?

I ask, because it is hard to understand what exactly is it you're missing: merge support (which we have), git log listing the files as copied/renamed (which is what --follow is for, and the suggestion for you is to make an alias or something), git blame (ever looked at git gui blame?) or gitk (which follows renames in default configuration)

> Also, we have a git web interface and we want the full
> history for the moved files to be available.

It is available. Whether it is shown is another question. git-web can be improved (or just configured?)

Previous: Lin MingNext: Michael J Gruber
Message 2 of 7 in “git history and file moves”
  1. Lin MingOct 22, 2008
  2. Alex RiesenOct 22, 2008
  3. Michael J GruberOct 22, 2008
  4. Moore, RobertOct 24, 2008
  5. Alex RiesenOct 24, 2008
  6. Moore, RobertOct 24, 2008
  7. Jakub NarebskiOct 24, 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.