An open API service indexing awesome lists of open source software.

https://github.com/arrrlo/lsbranch

List all directories with .git subdirectory and show current branch for each
https://github.com/arrrlo/lsbranch

git git-branch list-dir ls

Last synced: about 2 months ago
JSON representation

List all directories with .git subdirectory and show current branch for each

Awesome Lists containing this project

README

          

lsbranch

[![PyPI version](https://badge.fury.io/py/lsbranch.svg)](https://badge.fury.io/py/lsbranch)

List all directories with .git subdirectory and show current branch for each.

Instalation

```
pip install lsbranch
```

CLI Usage

```bash
Usage: lsbranch [OPTIONS]

List all directories with .git subdirectory and show current branch for
each

Options:
-r, --recursive Recursive directory search
-p, --path PATH Path to search
--help Show this message and exit.
```

Let's say that you want to list all git dirs in current dir, recursively:

```bash
> lsbranch -r -p .
```

Let's say you just want to list all git dirs in current dir, not recursively:

```bash
> lsbranch
```