From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: bug#38615: 27.0.50; vc-git: Wrong status in vc-dir after registering directory Date: Mon, 16 Dec 2019 10:00:22 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="118196"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) Cc: 38615@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 16 09:01:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iglJX-000UTi-OU for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Dec 2019 09:01:11 +0100 Original-Received: from localhost ([::1]:47268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iglJW-0004tD-58 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Dec 2019 03:01:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54237) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iglJP-0004sr-EU for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 03:01:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iglJO-0007sP-Cj for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 03:01:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59975) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iglJO-0007sK-9d for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 03:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iglJO-0002A2-9f for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 03:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2019 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38615 X-GNU-PR-Package: emacs Original-Received: via spool by 38615-submit@debbugs.gnu.org id=B38615.15764832338266 (code B ref 38615); Mon, 16 Dec 2019 08:01:02 +0000 Original-Received: (at 38615) by debbugs.gnu.org; 16 Dec 2019 08:00:33 +0000 Original-Received: from localhost ([127.0.0.1]:37715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iglIu-00029E-SU for submit@debbugs.gnu.org; Mon, 16 Dec 2019 03:00:33 -0500 Original-Received: from mail-lj1-f173.google.com ([209.85.208.173]:43597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iglIs-000291-Kc for 38615@debbugs.gnu.org; Mon, 16 Dec 2019 03:00:31 -0500 Original-Received: by mail-lj1-f173.google.com with SMTP id a13so5685784ljm.10 for <38615@debbugs.gnu.org>; Mon, 16 Dec 2019 00:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=72JVgq+x6FCjrHYs77nc14er3Jr3mWwJW0BZM0udd4k=; b=Sl6UYXUnD0JZfWDZLoDUgkBaNP1Y0w4v5dD/KOlj14jtVSd3llWgRUxS2R7Io4LYSl VvPGs/ZA+lz0pyEKlWXihC+iWmnVTICe75OlbFmXPM/a+3unVMM5FhxrVtWmAKnxFmZN dHfG+U81J2o3k8tMej7AnpWCotM9vlCQJ3Y2yytEmRTKhyaUJiO3/peipTpGu89/Z/s+ AR0f5CLaZnPnkgWM0GH7C3iUBKs/nyIGeQWkYKQP1nGj8c9LnkKYQzW+9WeTWM82kFAv 4f3T+Lv9SA4SrVMeo1fqmPga9NRjKBuoH1zqa690Sl6VR1A/fh1KuTYn2h7EeoXqYOL1 JhMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=72JVgq+x6FCjrHYs77nc14er3Jr3mWwJW0BZM0udd4k=; b=qBQ1+qLEFVKdMMKlpwCxMESw04YuHL8BN6TxCeznMthy0WMtkcc1ubDiV4a6sOLXkH gH/NWLh70OCHUrP69lrYMFsV9whwh++vKJvtSBl0OIx+bu5SyqYh4p93IssGXh56lJWm CiTscnS63AofcnxvnaYpDLPdCRfAQdA7xf/XMUyS1YRuAHj04S0A+ofZ1Pg4433+FHNC tEmvZXNajwBBVefbQtTpXJCnGc+yt8XvZDWKRJzGepeWKoQAS8T2+aBDAb2toMZLsgyg 4c2BhWYRWbQ/0kIoZscWFXaimjYwwoJNBwl5n8xxWFf7ECUirYq1ATLYKweaVjLicrvX FugA== X-Gm-Message-State: APjAAAWNsCj09wOWkjwXw2mw9ii+pHaDR3NlOAgmnLTI4oVaiapeobAk a0Ym33X+p1zf+T1bnUNfkD+ivBZY X-Google-Smtp-Source: APXvYqzUX6tP7Rwhy4heH8ZP3n4kVnHyjfQJpv2R2mhTWcMS8TVqiW4/iBhpZWbPjLthHv+4AvLp+A== X-Received: by 2002:a2e:7009:: with SMTP id l9mr18881957ljc.96.1576483224274; Mon, 16 Dec 2019 00:00:24 -0800 (PST) Original-Received: from muffinmac.local (188-42-207-82.ip.ukrtel.net. [82.207.42.188]) by smtp.gmail.com with ESMTPSA id b17sm9845497ljd.5.2019.12.16.00.00.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 00:00:23 -0800 (PST) In-Reply-To: (Dmitry Gutov's message of "Mon, 16 Dec 2019 03:25:00 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173423 Archived-At: Dmitry Gutov writes: > On 14.12.2019 14:41, Andrii Kolomoiets wrote: >> 0. mkdir test && cd test >> git init >> touch file >> git add file >> git commit -m "initial" >> mkdir dir >> touch dir/file1 >> 1. emacs -Q >> 2. C-x v d >> "dir/" is listed with "unregistered" status. >> 3. v >> "dir/" has "added" status. >> 4. g >> "dir/file1" is listed with "up-to-date" status. Shouldn't it have >> "added" status? >> 5. g >> Now "dir/file1" properly has "added" status. >> Also: >> - After step 3 point is moved to word "dir" on second line. >> - Press "n" before step 3 to move point to "dir/". After step 3 "dir/" >> status is not updated and remains "unregistered". > > Thanks for the repro. This problem seems to have been with us for a while. > > vc-git's dir-status-files code is a bit hard to follow, but here's a > patch you can try. I'll commit it in the next few days if nothing > comes up. Thanks, file status is "added" after step 4 now. 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?