git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* check-attr doesn't respect recursive definitions
@ 2013-03-30  9:45 Jan Larres
  2013-04-02 14:31 ` Jeff King
  2013-04-05  2:09 ` Duy Nguyen
  0 siblings, 2 replies; 13+ messages in thread
From: Jan Larres @ 2013-03-30  9:45 UTC (permalink / raw)
  To: git

Hi,

I am trying to write a custom archiving script that checks the
export-ignore attribute to know which files from an ls-files output it
should skip. Through this I noticed that for files in directories for
which the export-ignore (or any other) attribute is set, check-attr
still reports 'unspecified'. More precisely:

$ git init test
Initialized empty Git repository in /home/jan/test/.git/
$ cd test
$ mkdir foo
$ touch foo/bar
$ echo "foo export-ignore" > .gitattributes
$ git check-attr export-ignore foo
foo: export-ignore: set
$ git check-attr export-ignore foo/bar
foo/bar: export-ignore: unspecified

I would expect the last command to also report 'set'. I've also tried
other patterns like 'foo/' and 'foo*', but it didn't make any
difference. Is this expected behaviour? It does make checking the
attributes of single files somewhat more difficult.

git-archive ignores the directory as expected, but unfortunately it
doesn't have an option to just list the files it would archive instead
of actually archiving them.

This is with git version 1.7.10.4.

-Jan

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

end of thread, other threads:[~2013-04-06 19:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-30  9:45 check-attr doesn't respect recursive definitions Jan Larres
2013-04-02 14:31 ` Jeff King
2013-04-02 14:48   ` Jeff King
2013-04-02 16:11   ` Junio C Hamano
2013-04-02 16:30     ` Jeff King
2013-04-02 16:43       ` Junio C Hamano
2013-04-02 16:51         ` Jeff King
2013-04-02 17:15           ` Jeff King
2013-04-02 17:16           ` Junio C Hamano
2013-04-02 19:16             ` Jeff King
2013-04-03 10:05               ` Jan Larres
2013-04-05  2:09 ` Duy Nguyen
2013-04-05 12:04   ` Jan Larres

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