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

Re: cg-restore

From
Petr Baudis <pasky@suse.cz>
Date
Sep 23, 2005, 23:42 UTC
Message-ID
<20050923234249.GI10255@pasky.or.cz>
In-Reply-To
<20050923233603.GE1495@schottelius.org>

Dear diary, on Sat, Sep 24, 2005 at 01:36:03AM CEST, I got a letter where Nico -telmich- Schottelius <nico-linux-git@schottelius.org> told me that...

Show 16 quoted lines
> What I did:
> ------------------------
> [1:25] hydrogenium:cinit% cg-restore contrib+tools/cinit.graph.text.c 
> git-checkout-cache: contrib+tools/cinit.graph.text.c already exists
> Makefile: locally modified
> contrib+tools/Makefile: locally modified
> contrib+tools/cinit.graph.text.c: locally modified
> [1:25] hydrogenium:cinit% rm contrib+tools/cinit.graph.text.c 
> [1:26] hydrogenium:cinit% cg-restore contrib+tools/cinit.graph.text.c
> Makefile: locally modified
> contrib+tools/Makefile: locally modified
> [1:26] hydrogenium:cinit%
> ------------------------
> 
> Is this the wanted behaviour of cg-restore or should it overwrite
> the specified changed file?

Nope, it should overwrite it only if given the -f option. The documentation was unclear, confusing, and wrong though - I've fixed that now, thanks.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Nico -telmich- Schottelius
Message 2 of 2 in “cg-restore”
  1. Nico -telmich- SchotteliusSep 23, 2005
  2. Petr BaudisSep 23, 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.