---
name: "cg-admin-lsobj"
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-lsobj"
---

# cg-admin-lsobj(1)

list unpacked objects in the repository

## NAME

cg-admin-lsobj - list unpacked objects in the repository

## SYNOPSIS

cg-admin-lsobj \[OBJECT\_TYPE\].sp

## DESCRIPTION

Lists IDs of all the objects of a given type found in the dircache. Takes the object type as the first parameter, defaults to all objects..sp WARNING! This command does not list packed objects, so its usefulness is rather limited right now. That's a big TODO..sp The possible object types are:.sp

blob

This object is a pure storage object containing some user data.

commit

This object ties directory hierarchies together into a DAG of revisions.

tree

This object is an object that ties one or more blob objects into a directory structure.

tag

This object ties a symbolic release tag to an object in the database.

See the git README for more information about the object types..sp

## OPTIONS

- \-h, --help

  Print usage summary.

- \--long-help

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

## EXAMPLE USAGE

Oh, I was messing with my HEADs and lost few commits, where on the earth could they be...?.sp

```
for i in `cg-admin-lsobj commit | cut -f 1`; do
        echo -e "0=================0e $i"; cat-file commit $i;
done
```

## COPYRIGHT

Copyright © Randy Dunlap, 2005 Copyright © Petr Baudis, 2005.sp

## SEE ALSO

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