threads / discuss / 1931

cg-restore

Subject: cg-restore

## tl;dr

2 messages between Sep 23, 2005 and Sep 23, 2005.

replies: 1people: 2as markdown or json

Nico -telmich- Schottelius· Sep 23, 2005, 23:36 UTC · lore
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?

Nico
-- 
Latest project: cconfig (http://nico.schotteli.us/papers/linux/cconfig/)
Open Source nutures open minds and free, creative developers.
Petr Baudis· Sep 23, 2005, 23:42 UTC · re: Nico -telmich- Schottelius · lore

Re: cg-restore

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.

← back to recent threads