git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Listing top tracked files and directories only

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Mar 26, 2011, 16:28 UTC
Message-ID
<AANLkTikbJt6-wz4dw-o4oLKc=0u_8EUFaAoYxokd3GPN@mail.gmail.com>
In-Reply-To
<AANLkTi=0oWTtUbLFjQsh5-Koghz3UwmaPcrFiR2W-hdS@mail.gmail.com>
On Sat, Mar 26, 2011 at 5:24 PM, Scott Chacon <schacon@gmail.com> wrote:
Show 16 quoted lines
> 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
Previous: Scott Chacon
Message 3 of 3 in “Listing top tracked files and directories only”
  1. Francis MoreauMar 26, 2011
  2. Scott ChaconMar 26, 2011
  3. Francis MoreauMar 26, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.