Tommaso Cucinotta wrote:
> On 04/04/13 00:31, Pavel Sanda wrote:
> >> tommaso@mobiletom:~/lyx-trunk-ws/lyx/development/autotests$ git status 
> >> hello-world-in.txt
> >> # On branch master
> >> nothing to commit (working directory clean)
> >> tommaso@mobiletom:~/lyx-trunk-ws/lyx/development/autotests$ git status 
> >> non-existent.txt
> >> # On branch master
> >> nothing to commit (working directory clean)
> > 
> > You forgot --porcelain there. 
> > Can you repost the results?
> > You should get "?? nonxistentfile" for the second case.
> 
> Sure, but result is exactly the same (from a different folder):
> 
>   tommaso@mobiletom:~/lyx-trunk-ws/lyx$ git status --porcelain COPYING
>   tommaso@mobiletom:~/lyx-trunk-ws/lyx$ git status --porcelain 
> COPYING-nonexistent

I got it now, sorry didn't read carefully. 
The problem is that such behaviour is intentional i guess, my understanding is
File exists & is in repo -> we load with git support
File exists & not in repo-> ?? porcelain case, we don't load with VCS support
File !exists& we are in repo (more exactly within dir structure where .git can 
be found in ancestors) -> we offer to check it out from archive (your "bug")
File !exists& we are not in repo -> just create new file

Perhaps we can drop this check-out behaviour if it makes troubles, wait for 
Georg's opinion.
There is also still the problem that we run GIT::find_file 2x IIRC.

Pavel

Reply via email to