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

Re: Directory renames without breaking git log.

From
Kai Blin <kai@samba.org>
Date
Sep 4, 2008, 20:52 UTC
Message-ID
<200809042252.37329.kai@samba.org>
In-Reply-To
<7vtzcv1yk8.fsf@gitster.siamese.dyndns.org>
On Thursday 04 September 2008 21:49:27 Junio C Hamano wrote:
Show 10 quoted lines
> > git blame still works, and git log --sparse path/to/file works, of
> > course. --sparse makes giving a path a bit pointless, of course, but we
> > probably can live with that for time being. I'm still open for
> > suggestions, of course. :)
>
> Give both directories, like:
>
> 	"git log -- newdir olddir"
>
> perhaps?

Better, but really ugly, as we'll have to keep doing this for the rest of the project's life to get the full history. And while it's all nice and fun for git log -- source3/configure.in source/configure.in, it's less fun for deeper paths.

We'll probably end up just doing a git-filter-branch renaming the samba3 source dir source3 from the beginning and the samba4 source dir source4 from the beginning, and then do the octopus merge. Without any paths changing, that should probably work. It's a bit annoying to break all external branches, but we only need to do this once, and people will only need to git-format-patch and git-am once, and we can provide a step-by-step guide for this as well.

Thanks for the feedback, though. :)

Cheers, Kai

-- 
Kai Blin
WorldForge developer  http://www.worldforge.org/
Wine developer        http://wiki.winehq.org/KaiBlin
Samba team member     http://www.samba.org/samba/team/
--
Will code for cotton.
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 8 in “Directory renames without breaking git log.”
  1. Kai BlinSep 3, 2008
  2. TarmiganSep 4, 2008
  3. Kai BlinSep 4, 2008
  4. Junio C HamanoSep 4, 2008
  5. Kai BlinSep 4, 2008
  6. Junio C HamanoSep 4, 2008
  7. Jakub NarebskiSep 4, 2008
  8. TarmiganSep 4, 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.