Re: [PATCH] cg-seek should not complain if run twice
- From
Petr Baudis <pasky@suse.cz>
- Date
- Jan 14, 2006, 23:30 UTC
- Message-ID
- <20060114233037.GA28365@pasky.or.cz>
- In-Reply-To
- <1135054536.3815.14.camel@dv>
Dear diary, on Tue, Dec 20, 2005 at 05:55:36AM CET, I got a letter where Pavel Roskin <proski@gnu.org> said that...
Show 9 quoted lines
> cg-seek complains if run without arguments in a non-seeked repository: > > rm: cannot remove `.git/refs/heads/cg-seek-point': No such file or directory > rm: cannot remove `.git/head-name': No such file or directory > > In fact, it's OK for those files not to exist, so they should be removed > silently. > > Signed-off-by: Pavel Roskin <proski@gnu.org>
It seems cleaner to just make cg-seek fail with a sensible error message if it's already unseeked.
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ Of the 3 great composers Mozart tells us what it's like to be human, Beethoven tells us what it's like to be Beethoven and Bach tells us what it's like to be the universe. -- Douglas Adams