Package: zsh
Version: 4.3.4-6
Severity: normal
File: /usr/share/zsh/4.3.4/functions/Completion/Unix/_git

In a repository where *.pyc files are ignored, adding a .py file,
which has already been put under git's control, to a commit causes
the completer to suggest the .pyc instead.

git has two uses for add, one to put a file under git control and
the other to add files to a commit when they have changes since the
last add or commit.

Here is the output of git status:

# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#
# modified:   src/NetconfDaemon.py
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
# debian/
# src/head
# src/ifupdown_cfg.py
# src/interfaces
# src/mapping.sh
no changes added to commit (use "git add" and/or "git commit -a")



the NetconfDaemon.py file is known to git but not part of the
commit. The other files are unknown to git.

Now, when in the src/ directory, typing

  git add Netconf<type>

will yield NetconfDaemon.pyc.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zsh depends on:
ii  debconf [debconf-2.0]         1.5.13     Debian configuration management sy
ii  libc6                         2.5-10     GNU C Library: Shared libraries
ii  libncurses5                   5.6-3      Shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libcap1                       1:1.10-14  support for getting/setting POSIX.
pn  libpcre3                      <none>     (no description available)

-- no debconf information

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to