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

Re: [PATCH] Make git-mv work in subdirectories, too

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Nov 30, 2005, 14:50 UTC
Message-ID
<200511301550.10644.Josef.Weidendorfer@gmx.de>
In-Reply-To
<20051129221024.GB3033@steel.home>
On Tuesday 29 November 2005 23:10, Alex Riesen wrote:
> It actually works in subdirs.
> 
> --- t/t4007-mv.sh
> test_expect_success \
>     'moving the file' \
>     'cd path0 && git-mv COPYING ../path1/COPYING'

Thanks for the test. After moving to path1, you should check the other way, too:

  cd path0 && git-mv ../path1/COPYING COPYING

And this currenly does *not* work because git-mv is only aware of the git-controlled files in the subdirectory.

We probably also should check that source and target are in the same git repo.

Josef
Previous: Alex Riesen
Message 4 of 4 in “Make git-mv work in subdirectories, too”
  1. Make git-mv work in subdirectories, tooJohannes Schindelin, Nov 25, 2005
  2. Junio C HamanoNov 26, 2005
  3. Alex RiesenNov 29, 2005
  4. Josef WeidendorferNov 30, 2005

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.