# cg-restore

2 messages from 2005-09-23 to 2005-09-23. Participants: Nico -telmich- Schottelius, Petr Baudis.
Thread: https://gitlist.dev/t/1931

## Nico -telmich- Schottelius, 2005-09-23 23:36

Subject: cg-restore
Message-ID: <20050923233603.GE1495@schottelius.org>
URL: https://gitlist.dev/e/20050923233603.GE1495%40schottelius.org

```
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, 2005-09-23 23:42

Subject: Re: cg-restore
Message-ID: <20050923234249.GI10255@pasky.or.cz>
URL: https://gitlist.dev/e/20050923234249.GI10255%40pasky.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...
> 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.

```
