Listing top tracked files and directories only
- From
- Francis Moreau <francis.moro@gmail.com>
- Date
- Mar 26, 2011, 16:18 UTC
- Message-ID
- <AANLkTi=OMXTJm=mvr70KudS+S9c857z7Kv1qVE1FFdD_@mail.gmail.com>
Hello,
I'd like to find a way to list files and directories tracked by git but which are only in the top directory of the tracked project.
For example, in a kernel repository:
$ git-magic-command --magic-options .gitignore .mailmap COPYING CREDITS Kbuild MAINTAINERS Makefile README REPORTING-BUGS Documentation/ arch/ drivers/ kernel/ ...
I tried to come up with something using git-ls-files but fails.
Thanks for any suggestions.
-- Francis