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

Re: [PATCH] git-mv: fix directory separator treatment on Windows

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 30, 2009, 14:20 UTC
Message-ID
<alpine.DEB.1.00.0906301620370.4773@pacific.mpi-cbg.de>
In-Reply-To
<4A4A1445.6090704@viscovery.net>
Hi,
On Tue, 30 Jun 2009, Johannes Sixt wrote:
Show 21 quoted lines
> From: Johannes Sixt <j6t@kdbg.org>
> 
> The following invocations did not work as expected on Windows:
> 
>     git mv foo\bar dest
>     git mv foo\ dest
> 
> The first command was interpreted as
> 
>     git mv foo/bar dest/foo/bar
> 
> because the Windows style directory separator was not obeyed when the
> basename of 'foo\bar' was computed.
> 
> The second command failed because the Windows style directory separator was
> not removed from the source directory, whereupon the lookup of the
> directory in the index failed.
> 
> This fixes both issues by using is_dir_sep() and basename().
> 
> Signed-off-by: Johannes Sixt <j6t@kdbg.org>
ACK
Dscho
Previous: Johannes Sixt
Message 2 of 2 in “git-mv: fix directory separator treatment on Windows”
  1. git-mv: fix directory separator treatment on WindowsJohannes Sixt, Jun 30, 2009
  2. Johannes SchindelinJun 30, 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.