Subject: [Bug] git status -unormal -- 'foo[b]/' won't display content of 'foo[b]/

From: Rémi Vanicat <[email-masked]>
Date: Sun, 21 Sep 2014 20:04:08 +0200

Hello,

I found what look like a bug in git status:
`git status -unormal foo[b]/` won't output the content of the directory
foo[b] when `git status -unormal foo/` will output the content of the
directory foo: 

  $ mkdir 'foo[b]'
  $ touch 'foo[b]/bar'
  $ git status -unormal 'foo[b]/'
  On branch master
  Untracked files:
    (use "git add <file>..." to include in what will be committed)

          foo[b]/

  nothing added to commit but untracked files present (use "git add" to track)
  $ mkdir 'foo'
  $ touch 'foo/bar'
  $ git status -unormal 'foo/'
  On branch master
  Untracked files:
    (use "git add <file>..." to include in what will be committed)

          foo/bar

  nothing added to commit but untracked files present (use "git add" to track)

The documentation of git status contain nothing about treating bracket
specially. Quoting the brackets do not solve the problem.

see https://github.com/magit/magit/issues/1512 for discussion about it
(in the case of git status --porcelain).
-- 
Rémi Vanicat