Giter Site home page Giter Site logo

recrepo's Introduction

usage: recrepo [-h] [--ignore-dirty] [--ignore-untracked] [--output OUTPUT]
               [--pretty] [--version]
               pointer [pointer ...]

Record repository status after asserting it's clean.

This script records the status of one or more repositories in a JSON
file (``recrepo.json`` by default).  It also asserts that those
repositories are clean (unless ``--ignore-dirty`` option is given) and
exit with an error code if files that are not tracked by git or not
committed are found.

Examples
--------
::
    recrepo PATH/TO/GIT/REPOSITORY
    recrepo --output=- PATH/TO/GIT/REPOSITORY
    recrepo REPOSITORY_1 REPOSITORY_2

Installation
------------
::
    wget https://raw.githubusercontent.com/tkf/recrepo/master/recrepo.py -O recrepo
    chmod u+x recrepo

positional arguments:
  pointer             Path to a file or directory inside a project. Multiple
                      paths can be given.

optional arguments:
  -h, --help          show this help message and exit
  --ignore-dirty      Ignore repositories with uncommitted files. By default,
                      uncommitted (and untracked) files result in exit with
                      return code 113. (default: False)
  --ignore-untracked  Ignore repositories with untracked files. By default,
                      untracked and uncommitted files result in exit with
                      return code 113. (default: False)
  --output OUTPUT     Path to output JSON file. "-" means stdout. (default:
                      recrepo.json)
  --pretty            Pretty-print JSON output. (default: False)
  --version           show program's version number and exit

recrepo's People

Contributors

tkf avatar

Stargazers

Andres Mariscal avatar

Watchers

 avatar James Cloos avatar  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.