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

Re: cg-mv

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Oct 12, 2005, 13:14 UTC
Message-ID
<200510121514.22276.Josef.Weidendorfer@gmx.de>
In-Reply-To
<20051012100757.GM30889@pasky.or.cz>
On Wednesday 12 October 2005 12:07, Petr Baudis wrote:
Show 12 quoted lines
> so it should keep the file under the original name as well, but
> untraced? That's weird. What about
>
> 	#!/usr/bin/env bash
>
> 	if [ -e $2 ]; then
> 		! got_parameter -f && die "dest exists"
> 		[ -e $1 ] || die "no source nor destination"
> 	fi
> 	( [ -e $1 ] && mv $1 $2 ) && cg-add $2 && cg-rm $1
>
> plus quoting and stuff?
Wishlist...
Please make it similar to mv:
* Rename directories, too
* If last argument is an existing directory
  move given files/directories into that directory
Josef
Previous: Petr BaudisNext: Zack Brown
Message 3 of 4 in “cg-mv”
  1. Zack BrownOct 7, 2005
  2. Petr BaudisOct 12, 2005
  3. Josef WeidendorferOct 12, 2005
  4. Zack BrownOct 12, 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.