---
name: "cg-admin-ls"
section: "1"
platform: "linux"
package: "cogito"
version: "0.18.2-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/cg-admin-ls"
---

# cg-admin-ls(1)

list contents of a particular tree in the repository

## NAME

cg-admin-ls - list contents of a particular tree in the repository

## SYNOPSIS

cg-admin-ls \[-t TREE\_ID\] \[PATH\].sp

## DESCRIPTION

Optionally takes a commit or tree ID as a parameter, defaulting to *HEAD*..sp

## OPTIONS

- \-t TREE\_ID

  List the content of the given TREE\_ID.

- \-h, --help

  Print usage summary.

- \--long-help

  Print user manual. The same as found in [**cg-admin-ls**(1)](/cg-admin-ls/1.md).

## OUTPUT FORMAT

Each line in the output has the following format:.sp

```
<mode>  <type>  <sha1>  <name>
```

where.sp

\<mode\>

The file permission information in octal format.

\<type\>

The type can be the following: blob refers to files and tree refers to directories.

\<sha1\>

The object ID.

\<name\>

The file or directory name.

Example line:.sp

```
100644  blob    c7dacd0ea28994e3c754ca4eadb2e08c011ee3d3        README
```

## COPYRIGHT

Copyright © Petr Baudis, 2005.sp

## SEE ALSO

cg-admin-ls is part of [**cogito**(7)](/cogito/7.md), a toolkit for managing [**git**(7)](/git/7.md) trees..sp
