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

Re: git remote rename, why dosen't it exists?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 4, 2008, 15:51 UTC
Message-ID
<alpine.DEB.1.00.0806041649270.13507@racer.site.net>
In-Reply-To
<1212591245.30731.17.camel@omicron.ep.petrobras.com.br>
Hi,
On Wed, 4 Jun 2008, Victor Bogado da Silva Lins wrote:
> I trying to refactor [in builtin-remote.c] rm into rm_or_rename, but I 
> stumbled into a problem, how do I free a remote struct obtained with 
> "remote_get"?
At the moment, there is no way to do that.
> Another possibility would be another way to check if a remote already 
> exists without allocating it in case it does. The need comes from 
> testing whether the destination name already exists, if it does exists I 
> must free the remote_get and bail_out.
I think in the first step, you can just _not_ free() it, just die().

Ciao, Dscho

Previous: Victor Bogado da Silva LinsNext: Victor Bogado da Silva Lins
Message 8 of 11 in “git remote rename, why dosen't it exists?”
  1. Victor Bogado da Silva LinsJun 3, 2008
  2. Matthieu MoyJun 3, 2008
  3. Johannes SchindelinJun 3, 2008
  4. Johannes SchindelinJun 3, 2008
  5. Victor Bogado da Silva LinsJun 3, 2008
  6. Johannes SchindelinJun 3, 2008
  7. Victor Bogado da Silva LinsJun 4, 2008
  8. Johannes SchindelinJun 4, 2008
  9. Victor Bogado da Silva LinsJun 5, 2008
  10. Johannes SchindelinJun 5, 2008
  11. Vincent KergonnaJun 5, 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.