{"thread":{"id":"26874","subject":"Listing top tracked files and directories only","startedAt":"2011-03-26T16:18:50Z","lastAt":"2011-03-26T16:28:16Z","messageCount":3,"participants":["Francis Moreau","Scott Chacon"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"164365","messageId":"AANLkTi=OMXTJm=mvr70KudS+S9c857z7Kv1qVE1FFdD_@mail.gmail.com","threadId":"26874","inReplyTo":null,"subject":"Listing top tracked files and directories only","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2011-03-26T16:18:50Z","receivedAt":"2011-03-26T16:18:50Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"Hello,\n\nI'd like to find a way to list files and directories tracked by git\nbut which are only in the top directory of the tracked project.\n\nFor example, in a kernel repository:\n\n  $ git-magic-command --magic-options\n  .gitignore\n  .mailmap\n   COPYING\n   CREDITS\n   Kbuild\n   MAINTAINERS\n   Makefile\n   README\n   REPORTING-BUGS\n   Documentation/\n   arch/\n   drivers/\n   kernel/\n   ...\n\nI tried to come up with something using git-ls-files but fails.\n\nThanks for any suggestions.\n-- \nFrancis\n"},{"id":"164366","messageId":"AANLkTi=0oWTtUbLFjQsh5-Koghz3UwmaPcrFiR2W-hdS@mail.gmail.com","threadId":"26874","inReplyTo":"AANLkTi=OMXTJm=mvr70KudS+S9c857z7Kv1qVE1FFdD_@mail.gmail.com","subject":"Re: Listing top tracked files and directories only","fromName":"Scott Chacon","fromEmail":"schacon@gmail.com","sentAt":"2011-03-26T16:24:45Z","receivedAt":"2011-03-26T16:24:45Z","isPatch":false,"sender":{"key":"schacon@gmail.com","avatar":"https://gravatar.com/avatar/9b13a8a078e1dcf8588c4eea9554445d51ebed6c41b51f56f4d96738130b05c6?d=mp&s=160"},"body":"Hey,\n\nOn Sat, Mar 26, 2011 at 9:18 AM, Francis Moreau <francis.moro@gmail.com> wrote:\n> Hello,\n>\n> I'd like to find a way to list files and directories tracked by git\n> but which are only in the top directory of the tracked project.\n>\n> For example, in a kernel repository:\n>\n>  $ git-magic-command --magic-options\n>  .gitignore\n>  .mailmap\n>   COPYING\n\n$ git ls-tree --name-only [branch]\n\nScott\n"},{"id":"164367","messageId":"AANLkTikbJt6-wz4dw-o4oLKc=0u_8EUFaAoYxokd3GPN@mail.gmail.com","threadId":"26874","inReplyTo":"AANLkTi=0oWTtUbLFjQsh5-Koghz3UwmaPcrFiR2W-hdS@mail.gmail.com","subject":"Re: Listing top tracked files and directories only","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2011-03-26T16:28:16Z","receivedAt":"2011-03-26T16:28:16Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"On Sat, Mar 26, 2011 at 5:24 PM, Scott Chacon <schacon@gmail.com> wrote:\n> Hey,\n>\n> On Sat, Mar 26, 2011 at 9:18 AM, Francis Moreau <francis.moro@gmail.com> wrote:\n>> Hello,\n>>\n>> I'd like to find a way to list files and directories tracked by git\n>> but which are only in the top directory of the tracked project.\n>>\n>> For example, in a kernel repository:\n>>\n>>  $ git-magic-command --magic-options\n>>  .gitignore\n>>  .mailmap\n>>   COPYING\n>\n> $ git ls-tree --name-only [branch]\n\ncool thanks a lot !\n-- \nFrancis\n"}]}