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

Re: Proper tracking of copies in git log and others

From
Graeme Geldenhuys <graemeg@gmail.com>
Date
Jul 7, 2009, 06:53 UTC
Message-ID
<h2ure0$j73$1@ger.gmane.org>
In-Reply-To
<4A4F8258.5070701@trn.iki.fi>
Lasse Kärkkäinen wrote:
> Getting full history of a file, including that beyond copies, is rather 
> important and apparently not currently supported by git tools.

You seem to be right. I'm quite new to Git so don't know all the commands, but this is what I came up with..

$ git log --raw 2009/exercise2/description.txt
commit edfd954572e844b05a7489bcaa149afb679bc1f6
Author: Graeme Geldenhuys <graeme@mastermaths.co.za>
Date:   Tue Jul 7 08:44:20 2009 +0200
     Course 2009 recycled entirely from 2008
:000000 100644 0000000... e965047... A  2009/exercise2/description.txt

We then take note of the ^^^^^^^ value and generate the following command.

$ git log -C --raw | grep e965047 :000000 100644 0000000... e965047... A 2009/exercise2/description.txt :000000 100644 0000000... e965047... A 2008/exercise2/description.txt :000000 100644 0000000... e965047... A 2007/exercise1/description.txt

Now now shows you the history of the file as it was copied from one directory to another.

Regards,
   - Graeme -
-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
Previous: Lasse KärkkäinenNext: Michael J Gruber
Message 4 of 6 in “Proper tracking of copies in git log and others”
  1. Lasse KärkkäinenJul 4, 2009
  2. Sean EstabrooksJul 4, 2009
  3. Lasse KärkkäinenJul 14, 2009
  4. Graeme GeldenhuysJul 7, 2009
  5. Michael J GruberJul 7, 2009
  6. Avery PennarunJul 7, 2009

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.