On Tue, Jul 03, 2007 at 15:40:12 +0200, Matthieu Moy wrote:
Hm. They all behave roughly the same: They unversion the file and unlink it,
unless it is modified, in which case they unversion it and leave it alone.
Now git has the extra complexity that index contains also content of the
file. But the behaviour can be easily adapted like this (HEAD =3D version in
HEAD, index =3D version in index, tree =3D version in tree):
- if (HEAD =3D=3D index && index =3D=3D version) unversion and unlink
- else if (HEAD =3D=3D index || index =3D=3D version) unversion
- else print message and do nothing
Would you consider that a sane behaviour?
--=20
Jan 'Bulb' Hudec <bulb@ucw.cz>