[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#38615: 27.0.50; vc-git: Wrong status in vc-dir after registering dir
From: |
Andrii Kolomoiets |
Subject: |
bug#38615: 27.0.50; vc-git: Wrong status in vc-dir after registering directory |
Date: |
Mon, 16 Dec 2019 21:43:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) |
Dmitry Gutov <dgutov@yandex.ru> writes:
>> Though point is stil moves to the word "dir" on the second line after
>> step 3.
>> And directory "dir" status is not updated when:
>> 2. C-x v d
>> 3. n
>> 4. v
>> Should it be different bug reports for those cases?
>
> Yes.
>
> These would have to be fixed in vc-dir rather than vc-git, and they
> would require some more investigation about the proper behavior and
> the places to fix.
>
> Regarding the moving of point, personally, I'm not sure which of the
> behaviors is more correct.
It's `vc-dir-move-to-goal-column' called after `vc-register'. I will
make dedicated bug report.
> The latter is caused basically by:
>
> - Git returning a directory in the file status list.
> - Directories not having an actual VCS status in our system.
How about to list files and not directories? This will allow to register
untracked files under untracked directory with single `v'. Please see
attached patch.
vc-git-ls-files-in-untracked-dir.diff
Description: Text Data