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

Re: how to move with history?

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Jun 18, 2007, 20:43 UTC
Message-ID
<200706182243.27068.robin.rosenberg.lists@dewire.com>
In-Reply-To
<20070618202918.GM3037@cs-wsok.swansea.ac.uk>
måndag 18 juni 2007 skrev Oliver Kullmann:
Show 12 quoted lines
> > Git does not keep "renaming history". It does not have to, as it keeps
> > how your project looked at each commit (point in history).
> 
> For my purposes, that is a bad thing, since I want to get rid off some parts
> of the history (specifically I want to eliminate some files from history),
> as explained in that last paragraph in my e-mail (with the motivation):
> 
> Is this possible in git?
>
> And is it possible to add the history of some file to the history
> of another file (in the above application this would be the renamed
> file) ?

Git does not keep file histories at all. As a consequence it does not track renames either.

The history in Git is the history of the *whole* tree as a chunk, not a sum of file histories. It takes snapshots of your project, that's all. Then there are tools to do magic on top of that (e.g. git-blame).

There are tools to rewrite histories, but then you are violating of the key principles of git, that history is immutable so git may not be nice to you after history rewriting. Cogito has a powerful command.

-- robin
Previous: Frank LichtenheldNext: Alex Riesen
Message 6 of 9 in “how to move with history?”
  1. Oliver KullmannJun 18, 2007
  2. Alex RiesenJun 18, 2007
  3. Oliver KullmannJun 18, 2007
  4. J. Bruce FieldsJun 18, 2007
  5. Frank LichtenheldJun 18, 2007
  6. Robin RosenbergJun 18, 2007
  7. Alex RiesenJun 18, 2007
  8. Oliver KullmannJun 19, 2007
  9. Jakub NarebskiJun 19, 2007

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.