Hi Stefan,
I took the latest snapshot of dvc and all features you added/modified
now work fine for me:
1)create, switch and list branches using C-V o [s,c,l] work
2) The change to detect the most appropriate completion function at dvc
usage time rather that at load time also works.
Many thanks,
regards
Richard.
Stefan Reichör <[EMAIL PROTECTED]> writes:
> Hi Richard!
>
>>>
>>> I have implemented xgit-branch and xgit-checkout to create branches and
>>> to switch between git branches.
>>>
>>>
>>> Stefan.
>>
>> I created a branch "test1". When i tried to check it out I got
>>
>> "error: pathspec 'st1' did not match any file(s) known to git."
>
> I guess this is a problem with the emacs completion system.
>
> You can experiment with the following two lisp statements
> (copy them to emacs, e.g. the *scratch* buffer, and hit C-x C-e after
> the closing paren.
>
> (completing-read "branch: " '("test1" "another"))
> (ido-completing-read "branch: " '("test1" "another"))
>
>
> It should work when you enter test1 on the prompt.
>
> I use ido completion:
> Just use
> (ido-mode 'buffer)
> in your .emacs before loading dvc. It should setup
> dvc-completing-read-function like this:
> (setq dvc-completing-read-function 'ido-completing-read)
>
> When I do this,
> (dvc-completing-read "branch: " '("test1" "another"))
> uses ido-completing-read
>
> Another note: You can use M-x xgit-branch-list to show a list of
> available branches.
>
>
> Stefan.
--
important and urgent problems of the technology of today are no longer the
satisfactions of the primary needs or of archetypal wishes, but the reparation
of the evils and damages by the technology of yesterday. ~Dennis Gabor,
Innovations: Scientific, Technological and Social, 1970
_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev