git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug] Pathspec matching breaks the add command
@ 2018-09-17  1:52 smaudet
  2018-09-17 16:28 ` Duy Nguyen
  2018-09-18 17:31 ` [PATCH] add: do not accept pathspec magic 'attr' Nguyễn Thái Ngọc Duy
  0 siblings, 2 replies; 7+ messages in thread
From: smaudet @ 2018-09-17  1:52 UTC (permalink / raw)
  To: git

The following:

git add -u :\(glob,attr:-someAttr\):src/**

Produces an error that, according to the source code, should never be visible to the user. This attribute/pathspec *should* be supported according to the documentation provided by git:

fatal: BUG:builtin/add.c:498: unsupported magic 40

It looks like the documentation claims more features than the source code supports, perhaps incorrectly because I think you shouldn't be restricted to a set of attributes, and the source code
doesn't properly do its job anyways and never handles this scenario.

This should be fixed, if I have any time I'll look into what it would take to submit a patch, but I don't have the time for this right now.

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

end of thread, other threads:[~2018-09-20 21:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-17  1:52 [Bug] Pathspec matching breaks the add command smaudet
2018-09-17 16:28 ` Duy Nguyen
2018-09-17 17:51   ` Brandon Williams's E-Mail bouncing Ævar Arnfjörð Bjarmason
2018-09-17 18:04     ` Stefan Beller
2018-09-18 17:31 ` [PATCH] add: do not accept pathspec magic 'attr' Nguyễn Thái Ngọc Duy
2018-09-19 19:19   ` Junio C Hamano
2018-09-20 21:40     ` Junio C Hamano

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).