git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Listing top tracked files and directories only
@ 2011-03-26 16:18 Francis Moreau
  2011-03-26 16:24 ` Scott Chacon
  0 siblings, 1 reply; 3+ messages in thread
From: Francis Moreau @ 2011-03-26 16:18 UTC (permalink / raw)
  To: git

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

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

* Re: Listing top tracked files and directories only
  2011-03-26 16:18 Listing top tracked files and directories only Francis Moreau
@ 2011-03-26 16:24 ` Scott Chacon
  2011-03-26 16:28   ` Francis Moreau
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Chacon @ 2011-03-26 16:24 UTC (permalink / raw)
  To: Francis Moreau; +Cc: git

Hey,

On Sat, Mar 26, 2011 at 9:18 AM, Francis Moreau <francis.moro@gmail.com> wrote:
> 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

$ git ls-tree --name-only [branch]

Scott

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

* Re: Listing top tracked files and directories only
  2011-03-26 16:24 ` Scott Chacon
@ 2011-03-26 16:28   ` Francis Moreau
  0 siblings, 0 replies; 3+ messages in thread
From: Francis Moreau @ 2011-03-26 16:28 UTC (permalink / raw)
  To: Scott Chacon; +Cc: git

On Sat, Mar 26, 2011 at 5:24 PM, Scott Chacon <schacon@gmail.com> wrote:
> Hey,
>
> On Sat, Mar 26, 2011 at 9:18 AM, Francis Moreau <francis.moro@gmail.com> wrote:
>> 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
>
> $ git ls-tree --name-only [branch]

cool thanks a lot !
-- 
Francis

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

end of thread, other threads:[~2011-03-26 16:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26 16:18 Listing top tracked files and directories only Francis Moreau
2011-03-26 16:24 ` Scott Chacon
2011-03-26 16:28   ` Francis Moreau

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