[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jgit-dev] Difference of behavior between native git and jgit
|
Hi,
I found a difference between native git and jgit. I try a simple
test with few steps :
1. Create file 'a'
2. Add & Commit
3. Create branch 'br1'
4. Replace file 'a' (Rm 'a') by folder 'a' with a file 'c' inside
5. Add & Commit
6. Replace folder 'a' (Rm 'a') by a new file 'a'
7. Add 'a'
8. Checkout branch 'br1'
With native git, I get this message after the checkout: "error: Your
local changes to the following files would be overwritten by
checkout: a
Please, commit your changes or stash them before you can switch
branches. Aborting"
But with jgit, there is no error after calling the checkout, and the
file 'a' is deleted from the working tree.
Is it a normal behavior to have this difference ? Did I do something
wrong in my test case ?
Thank you in advance
--
Axel RICHARD
|
begin:vcard
fn:Axel RICHARD
n:RICHARD;Axel
org:Obeo
adr;quoted-printable:BP 20773 - ESPACE PERFORMANCE LA FLEURIAYE;;7, boulevard Amp=C3=A8re;CARQUEFOU;;44481;FRANCE
email;internet:axel.richard@xxxxxxx
title:Eclipse Modeling Consultant
tel;work:02.51.13.55.88
url:http://www.obeo.fr
version:2.1
end:vcard