Giter VIP home page Giter VIP logo

unstaged's Introduction

Unstaged

Check for unstaged changes across a set of git repositories that you configure.

Build Status

Usage:

unstaged [--flags] [/path/to/repo]

  -f, --file      config file path
  -h, --help      display help
  -v, --verbose   display verbose output
      --version   display version

You can specify the repo to check against as a command line parameter using format unstaged /path/to/repo or use a yaml configuration file to specify the list of repos to check against.

Configuration file:

unstaged looks for config file in a directory unstaged to be present inside user config location as returned by os.UserConfigDir() and must be of the following format:

  repos:
    - /path/to/repo/one
    - /path/to/repo/two
    - ...

Screenshot:

License

This package is under the MIT License. See LICENSE.

unstaged's People

Contributors

komish avatar tonyskapunk avatar m4ver1k avatar nickborysov avatar sinramyeon avatar

Stargazers

Lucie avatar Luis Cacho avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

unstaged's Issues

unstaged does not work without a configuration file

Test:

Current dir has unstaged changes:

$ git status >&1 | grep mod
        modified:   cmd/cmd.go

No config file in place:

$ unstaged ${PWD} >/dev/null ; echo $?
15
$ unstaged ./ >/dev/null ; echo $?
15

As soon as I touch that config file it works:

$ touch ~/.config/unstaged/.unstaged.yaml
$ unstaged ./
UNCLEAN ./

Builds fail when UNSTAGED_COMMIT_HASH and UNSTAGED_VERSION are unset

Travis defaults to using a Makefile's first target if a Makefile is found, and the current Makefile checks for versions and commit hashes before proceeding to the target. This is intended to work on only specific targets build-rel-* but that's not working.

TODO (options):

  • Force travis to ignore the Makefile or remove it from the top level
  • Fix Makefile's environment check to only apply to build-rel-*

Create basic tests

_test.go files are staged but currently are not performing any tests.

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.