Re: [PATCH] Add new git-rm command with documentation
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Feb 21, 2006, 22:32 UTC
- Message-ID
- <20060221223254.GB20744@spearce.org>
- In-Reply-To
- <43FB9455.6010402@people.pl>
Krzysiek Pawlik <krzysiek.pawlik@people.pl> wrote: [...]
Show 23 quoted lines
> +while : ; do > + case "$1" in > + -n) > + show_only=true > + ;; > + -v) > + verbose=--verbose > + ;; > + -f) > + remove_files=true > + ;; > + --) > + break > + ;; > + -*) > + usage > + ;; > + *) > + break > + ;; > + esac > + shift > +done
[...]
You are leaving -- in $@ for processing later, which means we'll try to delete the file '--'. :-)
I think a shift before the break in the -- case would fix this.
-- Shawn.