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>
| Bron Gondwana | BUG: mmapfile/writev spurious zero bytes (x86_64/not i386, bisected, reproducable) |
| Greg Kroah-Hartman | [PATCH 012/196] nozomi driver |
| Linus Torvalds | Re: Slow DOWN, please!!! |
| J.C. Pizarro | Re: linux+glibc memory allocator, poor performance |
git: | |
| Andy Parkins | svn:externals using git submodules |
| Scott Chacon | [PATCH] add a 'pre-push' hook |
| Alan Larkin | fatal: Out of memory, malloc failed |
| Dmitry Kakurin | Re: [RFC] Convert builin-mailinfo.c to use The Better String Library. |
| Gavan Fantom | Re: sysctl knob to let sugid processes dump core (pr 15994) |
| Lord Isildur | Re: Fork bomb protection patch |
| Manuel Bouyer | scsi disks with "Medium Format Corrupted" |
| Matt Thomas | Re: fsync performance hit on 1.6.1 |
| Hari | DHCP question |
| Nick Guenther | Re: When will OpenBSD support UTF8? |
| Christian Weisgerber | Re: libiconv problem |
| Vijay Sankar | taskjuggler problems |
