Git Product home page Git Product logo

git-sub's Introduction

git-sub

A command line tool to collect information across all git submodules

Subcommands

status

Show submodules status and file changes
status demo

Collect status information across all submodules

Usage: git-sub status [OPTIONS] [pathspec]

Arguments:
  [pathspec]  Filter commits by the pathspec

Options:
  -S, --staged                     Only show staged changes
  -w, --work-tree                  Only show working tree changes (un-staged)
  -i, --ignored                    Include ignored files
  -f, --diff-filter <diff-filter>  Filter changes with it's status.
                                   A = Add, D = Delete, M = Modified, R = Rename,
                                   T = Type changed, U = Unknown
                                   lowercases will exclude those flags
  -s, --short                      Only show summary of dirty submodules
  -p, --patch                      Show patch
  -a, --all                        Show all submodules regardless it is dirty or not
  -h, --help                       Print help information

log

Search commits across all submodules
log demo

Collect and show log across all submodules

Usage: git-sub log [OPTIONS] [pathspec]...

Arguments:
  [pathspec]...  Filter commits by the pathspec

Options:
  -a, --all                  Search commits on all branch
      --author <author>      Filter commits by author
  -r, --revision <revision>  Filter commits starting from the specific reference of the root repo
      --grep <grep>          Filter commits by commit message
  -l, --list                 List file of each commit
  -f, --full                 Show long format of each commit
  -p, --patch                Show patch of each commit
  -n, --num <num>            Set the number of log to be displayed
  -s, --start <start>        Set the number of log to start to displayed
  -h, --help                 Print help information

status

List files across all submodules

List files across all submodules

Usage: git-sub ls-files [OPTIONS] [pathspec]...

Arguments:
  [pathspec]...  Filter files by the pathspec

Options:
  -s, --staged          List files in the index
  -r, --rev <revision>  Search commits starting from the specific reference of the **root** repo
  -h, --help            Print help information

Build

Install rust toolchain: https://rustup.rs
Then run cargo build --release

git-sub's People

Contributors

paddythepaddy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.