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

Rename detection at git log

From
ALAlexander Litvinov <litvinov2004@gmail.com>
Date
Nov 20, 2006, 05:57 UTC
Message-ID
<200611201157.23680.litvinov2004@gmail.com>

How can I see all changes for one file ? Including renames/copies ? Currently I don't known how to see them :

> mkdir 1 && cd 1 && git init-db
defaulting to local storage area
> date >> a
> git add a
> git commit -a -m "1"
Committing initial tree c47d83a6544612309aad57519ca831cf62a489d5
> mkdir b
> git mv a b/
> git commit -a -m "2"
> PAGER=cat git log -M -C --pretty=oneline b/a
3b591f7147ee8dbe15fdf456db5730072d41bed8 2
>

At lastline I would like to see two commits : renaming a -> b/a and creation of a. By the way, how can I see commit message with git log ?

Thanks for help.
Next: Andy Parkins
Message 1 of 17 in “Rename detection at git log”
  1. Alexander LitvinovNov 20, 2006
  2. Andy ParkinsNov 20, 2006
  3. Junio C HamanoNov 20, 2006
  4. Jakub NarebskiNov 20, 2006
  5. Andy ParkinsNov 20, 2006
  6. Junio C HamanoNov 20, 2006
  7. Andy ParkinsNov 20, 2006
  8. Jakub NarebskiNov 20, 2006
  9. Junio C HamanoNov 20, 2006
  10. Andy ParkinsNov 20, 2006
  11. Junio C HamanoNov 20, 2006
  12. Andy ParkinsNov 20, 2006
  13. Alexander LitvinovNov 20, 2006
  14. Alex RiesenNov 20, 2006
  15. Andy ParkinsNov 20, 2006
  16. Junio C HamanoNov 20, 2006
  17. Andy ParkinsNov 20, 2006

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.