From: Steve Revilak <steve@srevilak.net>
To: 24082@debbugs.gnu.org
Subject: bug#24082: vc-dir changes working directory (git backend)
Date: Fri, 29 Jul 2016 20:35:21 -0400 [thread overview]
Message-ID: <20160730003521.GA17700@srevilak.net> (raw)
In-Reply-To: <874m7crwv4.fsf@xi.bootis>
[-- Attachment #1.1: Type: text/plain, Size: 1774 bytes --]
I'd like to submit some additional information. I seem similar (but
not identical behavior) when git is used as the vc backend.
I am using emacs version
GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.15) of 2016-07-29
I've attached a small shell script to assist in reproducing the
behavior. The script creates a git repository and commits two files
./my-repo/file1.txt and ./my-repo/file2.txt. The script also creates
(an unregistered) file ./my-repo/new-file.txt.
STEPS TO REPRODUCE:
sh mk-repository.sh
emacs -Q
C-x f my-repo/subdir RET
C-x v d
At this point emacs prompts "VC status for directory: ~/my-repo",
although the buffer's working directory was "~/my-repo/subdir".
I press RET at the "VC status for directory: ~/my-repo". Here's what
I see
---------------------------------
VC backend : Git
Working dir: ~/my-repo/
Branch : master
Remote :
Stash : Nothing stashed
./
unregistered new-file.txt
---------------------------------
When performing these steps with emacs-24.5:
- After pressing C-x v d, emacs prompts
"VC status for directory: ~/my-repo/subdir/"
- I press RET and see
---------------------------------
VC backend : Git
Working dir: ~/my-repo/subdir/
Branch : master
Remote :
Stash : Nothing stashed
./
---------------------------------
I agree with the reporter: the VC status is being reported from the
top-level of the repository, as opposed to the buffer's working
directory.
emacs-25.0.90 behaves the same way as emacs 25.1-rc1
Unlike the CVS report, '=' (in vc-dir) behaves as I would expect: it
shows me a diff of the file at point.
[-- Attachment #1.2: mk-repository.sh --]
[-- Type: application/x-sh, Size: 222 bytes --]
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-07-30 0:35 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 20:02 bug#24082: 25.1; vc-dir for CVS repositories list all files as if from toplevel directory Göktuğ Kayaalp
2016-07-30 0:35 ` Steve Revilak [this message]
2016-10-06 23:32 ` bug#24082: vc-dir changes working directory (git backend) Dmitry Gutov
2016-08-28 20:17 ` bug#24082: [PATCH] Use ‘cvs update’ instead ‘cvs status’ for CVS *vc-dir* buffers Göktuğ Kayaalp
2016-10-06 23:25 ` Dmitry Gutov
2016-10-07 19:29 ` Göktuğ Kayaalp
2016-10-08 1:01 ` Dmitry Gutov
2016-10-08 1:04 ` Dmitry Gutov
2016-10-12 0:59 ` Dan Nicolaescu
2016-10-13 18:10 ` Göktuğ Kayaalp
2016-10-22 1:34 ` Dan Nicolaescu
2016-10-05 18:31 ` bug#24082: Update Göktuğ Kayaalp
2016-10-05 18:33 ` Eli Zaretskii
2016-10-07 14:45 ` bug#24082: 25.1; vc-dir for CVS repositories list all files as if from toplevel directory Jérémie Courrèges-Anglas
2016-10-08 0:38 ` Dmitry Gutov
2016-10-08 15:13 ` Jérémie Courrèges-Anglas
2016-10-08 20:06 ` Dmitry Gutov
2016-10-09 12:18 ` Göktuğ Kayaalp
2016-10-10 23:55 ` Dmitry Gutov
2016-10-11 2:09 ` Göktuğ Kayaalp
2016-10-11 7:51 ` Andreas Schwab
2016-10-11 8:51 ` Dmitry Gutov
2016-10-11 15:48 ` Göktuğ Kayaalp
2016-10-10 16:41 ` Jérémie Courrèges-Anglas
2016-10-13 18:47 ` Göktuğ Kayaalp
2016-10-14 20:33 ` Jérémie Courrèges-Anglas
2016-10-15 12:36 ` Dmitry Gutov
2016-10-15 13:20 ` Göktuğ Kayaalp
2016-10-15 14:06 ` Jérémie Courrèges-Anglas
2016-10-15 17:26 ` Göktuğ Kayaalp
2016-10-15 21:36 ` Dmitry Gutov
2016-10-16 0:03 ` Göktuğ Kayaalp
2016-10-16 12:38 ` Jérémie Courrèges-Anglas
2016-10-16 14:07 ` Dmitry Gutov
2016-10-16 14:23 ` Eli Zaretskii
2016-10-16 15:58 ` Dmitry Gutov
2016-10-16 17:58 ` Eli Zaretskii
2016-10-18 0:04 ` Dmitry Gutov
2016-10-18 17:35 ` Göktuğ Kayaalp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160730003521.GA17700@srevilak.net \
--to=steve@srevilak.net \
--cc=24082@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).