git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug] git status -unormal -- 'foo[b]/' won't display content of 'foo[b]/
@ 2014-09-21 18:04 Rémi Vanicat
  2014-09-21 19:52 ` Torsten Bögershausen
  0 siblings, 1 reply; 4+ messages in thread
From: Rémi Vanicat @ 2014-09-21 18:04 UTC (permalink / raw)
  To: git Maling list

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-22 13:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-21 18:04 [Bug] git status -unormal -- 'foo[b]/' won't display content of 'foo[b]/ Rémi Vanicat
2014-09-21 19:52 ` Torsten Bögershausen
2014-09-22  1:24   ` Duy Nguyen
2014-09-22 13:01     ` Duy Nguyen

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 NNTP newsgroup(s).