Package: git
Version: 1:1.8.4~rc3-1
Severity: normal
File: git-grep

git grep has a -h option to omit the filename, but that option has no
effect when given with -c:

~/src/linux$ git grep -h 'example' | head -n 2
  For example, if you distribute copies of such a program, whether
may not distribute the Program at all.  For example, if a patent
~/src/linux$ git grep -hc 'example' | head -n 2
COPYING:2
Documentation/.gitignore:1

By contrast, standard grep does respect -h with -c:

~/src/linux$ grep -rh example * | head -n 2
  For example, if you distribute copies of such a program, whether
may not distribute the Program at all.  For example, if a patent
~/src/linux$ grep -rhc example * | head -n 2
0
2

(Also interesting that git grep omits files with a count of 0, while
grep does not.)

- Josh Triplett

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages git depends on:
ii  git-man          1:1.8.4~rc3-1
ii  libc6            2.17-93
ii  libcurl3-gnutls  7.32.0-1
ii  liberror-perl    0.17-1.1
ii  libexpat1        2.1.0-4
ii  libpcre3         1:8.31-2
ii  perl-modules     5.18.1-4
ii  zlib1g           1:1.2.8.dfsg-1

Versions of packages git recommends:
ii  less                         458-2
ii  openssh-client [ssh-client]  1:6.2p2-6
ii  patch                        2.7.1-3
ii  rsync                        3.0.9-4

Versions of packages git suggests:
ii  gettext-base                          0.18.3.1-1
pn  git-arch                              <none>
pn  git-bzr                               <none>
pn  git-cvs                               <none>
pn  git-daemon-run | git-daemon-sysvinit  <none>
pn  git-doc                               <none>
pn  git-el                                <none>
ii  git-email                             1:1.8.4~rc3-1
pn  git-gui                               <none>
ii  git-svn                               1:1.8.4~rc3-1
ii  gitk                                  1:1.8.4~rc3-1
pn  gitweb                                <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to