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

Re: 'git log' doesn't keep log of un-removed and then renamed directory

From
Chris Torek <chris.torek@gmail.com>
Date
Aug 14, 2021, 10:22 UTC
Message-ID
<CAPx1Gve4GoMtH5s-3-RQgf0szvpW-DdFn7GygzAzg_e6vTCrLQ@mail.gmail.com>
In-Reply-To
<CAPx1Gvdb=rtjWmc1Qe5iZyuwSF+s-YO7G__VUZ=iZw3x4bAKCw@mail.gmail.com>

I should add: to make this work in that future smarter `git log` command, be sure to:

 1. commit the un-removal first; then
 2. commit the rename (you can just `git mv` the
directory and commit)

so that the future smarter `git log` has an easy way of finding this. Ideally, it would find this even without that, but having all the files / sub-trees have identical hash IDs will make this much faster and easier.

Previous: Chris Torek
Message 3 of 3 in “'git log' doesn't keep log of un-removed and then renamed directory”
  1. YuriAug 14, 2021
  2. Chris TorekAug 14, 2021
  3. Chris TorekAug 14, 2021

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.